I am running some well-known C++ sample code on Raspberry Pi 3 (running as a client on the latest Raspbian version) for communication with BLE devices (running as servers) from VS2017 C++ for Linux project in debug mode. My project compiles without errors and even warnings. I use the BlueZ library's HCI finctions. Please advise me why the call to the BlueZ hci_le_set_scan_parameters() function fails (returns -1). From
Here is the link to the original C++ code I use without any changes:https://github.com/carsonmcdonald/bluez-experiments/blob/master/experiments/scantest.c
Thank you in advance.