Some libraries used in this code are not included in the default image, could you let us know which packages you added to compile the code?
Thanks for your quick reply. I compiled edison-src-rel1-maint-rel1-ww42-14.tgz and flash the Edison breakout board with the image. I haven't add any special special packages. I just add the library of bluetooth and pthread in the iotdk and pass the application compiling. But when I download the application to the target and run it, it always says "No such device" when invoking the interface hci_get_route(NULL). I've refered to the method of Upgrading Intel® IoT Developer Kit libraries – Intel® Edison or Intel® Galileo board | Intel® Developer Zone to update the target. But nothing changed. What can I do then?
I also checked the target, the bluetooth library exists in /usr/lib/bluez5/bluetooth
1 of 1 people found this helpful
Hi, I've found that, before invoking hci_get_route(NULL), we must call "rfkill unblock bluetooth" to enable the bluetooth on the target first. And call "rfkill block bluetooth" to disable it when closing bluetooth. Then, it will work.