PDA

View Full Version : How to implement HCI calls in QtCreator ?



anneranch
15th December 2020, 16:44
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);
'
The above call does not compile, even after I installed libbluetooth-dev

What am I missing to be able to use "hci" ?

Any help would be greatly appreciated.

Lesiok
15th December 2020, 16:59
What does it mean "not compile" ?

d_stranz
15th December 2020, 17:19
however I am stomped how to instruct Qt to process hci calls directly

Qt isn't "processing" anything. Qt is a C++ library, no different from your bluetooth library. It is your compiler, as executed by the compilation tool chain that is doing the processing.

Have you included the path to your bluetooth header files in the configuration of your project? Simply installing the distribution doesn't tell the compiler where to find the header or library files needed to build your app.