start_notify leads to hang on Linux and crash on Windows #949
Replies: 3 comments 3 replies
-
I think the error speaks for itself. The device must be paired/bonded before that particular characteristic can be used. |
Beta Was this translation helpful? Give feedback.
-
BlueZ may be waiting for the device to be paired since this characteristic requires authentication. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answer @dlech, and sorry for my late reply!
This is with bleak 0.16.0, but I also get the same message with 0.14.3. I think this might be related to #972. Pairing, as you suggested, was not necessary with bluepy. The issue also occurs for other users of eq3bt rytilahti/python-eq3bt#56. |
Beta Was this translation helpful? Give feedback.
-
This is a discussion as suggested by @dlech in #946.
I want to connect to a Bluetooth thermostat using Bleak. This has worked before using other Bluetooth modules, but I have not managed getting it to work with Bleak (while other people have).
With Windows, I receive an error mesasge and my code crashes while with Debian the code hangs.
Do you guys have any idea of what's going on?
This code is mainly copied from python-eq3bt module.
Windows 11
windows_11_eq3bt.pcapng.gz
Debian
Doesn't crash but hangs instead. Adapter set to hci1 via parameter (not shown in code).
bluetoothd -v: 5.55
debian_eq3bt.zip
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions