-1

I have a Raspberry Pi 4 with the latest BlueZ (5.54) stack. My goal is to make a Python script which collects different sensor data (Air Quality and Temperature) via Bluetooth Mesh. I was googling many articles and forums but could not decide which one is the best solution.

Tried to find a suitable Python library like PyBluez but as I know it is not under active developement (no mesh).

Another solution is to use the DBus API.

Andrew S.
  • 11
  • 4

1 Answers1

0

I would recommend going with the D-Bus API as this seems to be the focus of the developers

There are a number of D-Bus bindings for Python depending what you are looking for. Many of them are listed at: https://wiki.python.org/moin/DbusExamples

And there are others, such as dbussy, which are based around the asyncio event loop which has been used for this example: https://github.com/SilvairGit/bluetooth-meshd-example/blob/master/meshd_example/client.py

ukBaz
  • 6,985
  • 2
  • 8
  • 31