Implementing hci calls in Qt
-
I am going to try to bypass Qt Bluetooth.
I have implemented "bluetooth" library , however I am stomped how to instruct Qt to process hci calls directly.
I am using this doc as a "template"https://people.csail.mit.edu/albert/bluez-intro/c404.html'
dev_id = hci_get_route(NULL);
'
This above call does not compile, even after I installed libbluetooth-devWhat am I missing to be able to use "hci" ?
Any help would be greatly appreciated.
-
Hi,
What exact error are you getting ?
-
@SGaist said in Implementing hci calls in Qt:
Hi,
What exact error are you getting ?
/media/d/QT/QT_PROJECT_CAT/CAT_V1/hci_scan.cpp:60: error: 'hci_get_route' was not declared in this scope
int device_id = hci_get_route(NULL); // Passing NULL argument will retrieve the id of first avalaibe device
^ -
When you want use a function you should also include the appropriate header file.