Open nicolabattaglino opened 1 year ago
Did you try https://bleak.readthedocs.io/en/latest/troubleshooting.html?
I suspect logging Bluetooth packets could give some insight if the error is coming from the heart rate monitor itself.
Also try Bleak 0.20.0.
I tried to upgrade bleak, but I obtain the same error. In the following, there is a screenshot of the Bluetooth packets.
It looks like Bleak is just passing through the error from the device as it should. Does this device need to be paired/bonded first (although in that case, the device should technically be giving a different error that would trigger pairing automatically on macOS)?
bluetoothctl -v
) in case of Linux:Description
I'm trying to read the heart rate characteristic from various devices. I tried with a polar band H10 and an Amazfit GTS2 and everything works as expected, I receive the heart rate data. I encountered some problems when trying to read the same characteristic from the Xiaomi Mi Band 6. The pc connects correctly to the device but then the following error arises.
The script I'm using is the one in the folder 'examples' here on GitHub, named 'enable_notifications.py' https://github.com/hbldh/bleak/blob/develop/examples/enable_notifications.py
The command I run (Bluetooth address is omitted here):
Logs