Reputation: 9087
I started with this blog post Me and the Devil BlueZ: Reading BLE Sensors From C++. Since the repo had been archived I forked it, added a CI build and fixed a few minor issues here https://github.com/parsley72/NoiseCollectorBLE.
This works fine on Ubuntu but when I try the same code on my embedded device I just get:
interfaceAddedCallback(path = /org/bluez/hci0) *** UNEXPECTED SIGNAL ***
interfaceAddedCallback(path = /org/bluez/hci0) *** UNEXPECTED SIGNAL ***
Running bluetoothctl
then scan le
works fine so there's no issue with signal quality or hardware.
How can I do this in using sdbus-c++ so it works consistently on different devices?
Upvotes: 0
Views: 40