bluez_peripheral icon indicating copy to clipboard operation
bluez_peripheral copied to clipboard

dbus-next replacement

Open spacecheese opened this issue 1 year ago • 2 comments

The dbus-next library is no longer maintained and has a number of serious issues. Consider replacing with a better maintained library such as https://github.com/python-sdbus/python-sdbus or porting to a different bluez interface.

spacecheese avatar Jun 11 '24 18:06 spacecheese

There are a very early and rough Bluez binds for sdbus: https://github.com/python-sdbus/python-sdbus-bluez

They are not really production ready but there are a few examples in that repository which can be helpful.

igo95862 avatar Jun 18 '24 18:06 igo95862

Hi @spacecheese , thank you for your great library.

How about dbus-fast? https://github.com/Bluetooth-Devices/dbus-fast

This is compatible with dbus-next. I have implemented the Nordic UART Service in my project, https://github.com/hishizuka/pizero_bikecomputer/blob/master/modules/helper/ble_gatt_server.py and for each program in bluez_peripheral I rewrote import dbus_next to import dbus_fast and the program worked.

hishizuka avatar Jul 26 '24 13:07 hishizuka

Fixed in https://github.com/spacecheese/bluez_peripheral/pull/45

spacecheese avatar Jun 20 '25 09:06 spacecheese

Hi, @spacecheese Thank you!

hishizuka avatar Jun 20 '25 11:06 hishizuka