makercrew / dbus-sample

Sample C/C++ code for basic D-Bus use case
MIT License
118 stars 18 forks source link

GNU/Linux BLE via BlueZ #1

Open chelalv opened 5 years ago

chelalv commented 5 years ago

hi this link is broken, can you fix it? thanks in advence.

wcbonner commented 9 months ago

@zfields I appreciate your concise code example of a minimal connection to dbus. I was really hoping that your link would give me an understanding of the minimal required to receive Bluetooth advertising messages over dbus.

The current link in the Readme goes to a domain that appears unrelated.

It would be really nice if you have example code and could correct the link, but if there's not example code removing the link would also be more useful than the bad reference.

zfields commented 9 months ago

Thanks for bringing this to my attention. I'll either fix or remove the link.

To be honest, I was working through this problem on my own and my attention was taken away.

wcbonner commented 9 months ago

Thanks for bringing this to my attention. I'll either fix or remove the link.

To be honest, I was working through this problem on my own and my attention was taken away.

@zfields Thanks.

I've written a program that uses the older BlueZ API to continuously scan BLE for thermometer readings. It works but completely takes over the Bluetooth device.

On my raspberry pi I don't care, but other people have been trying to run on platforms using Bluetooth keyboard and mouse and I'm hoping that if I could move to the dbus interface it wouldn't be exclusive. It's a personal project so there's always the trade off of effort and time vs reward.

If you've gotten enough communication that does the equivalent of bluetoothctl followed by scan on and receiving something followed by scan off and exiting I know I'd have so much more than I've currently got, and likely the community would as well. Most of what I've found related to blueZ has been complaints of how poorly documented it is with no easy tutorial to get started.

Wim