kevincar / bless

Cross-platform Bluetooth Low Energy Server Python Library
MIT License
78 stars 26 forks source link

Update to bluez 5.64 dbus advertising API #85

Closed Jakeler closed 1 year ago

Jakeler commented 2 years ago

Fixes #80.

TxPower property is needed with bluez 5.47+ https://github.com/bluez/bluez/commit/9fb1f9ff694c387e7547b897ff1cd4c95d1063da IncludeTxPower was removed, this now under Includes and not required.

Also fixes the name in the advertising packet with the LocalName property. Note that setting the adapter alias is not strictly required, but I left it in - could be useful if there are multiple adapters/applications running on the same host.