Replies: 4 comments 1 reply
-
https://bleak.readthedocs.io/en/latest/api/scanner.html#bleak.BleakScanner.find_device_by_name |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks @dlech . |
Beta Was this translation helpful? Give feedback.
0 replies
-
@dlech, was it released? I can't find find_device_by_name in bleak 0.19.5. |
Beta Was this translation helpful? Give feedback.
1 reply
-
NP. I copied the implementation to my code and it works. Thanks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My app needs to connect to devices given their names. On Windows and Linux, the address is constructed from the name, but this doesn't work on Max OSX where the OS uses arbitrary device addresses. As a workaround, I am using the code below which scan for 5 seconds and then look the address by name.
My questions are:
Is this approach reasonable or is there a simpler approach? E.g. a connect by name API function.
Currently the scanning takes 5 secs even if the device was detected after 1 sec. Is there a way to abort the scan once the device is detected?
Beta Was this translation helpful? Give feedback.
All reactions