Problem connecting to BLE devices with Windows
See original GitHub issue- bleak version: 0.4.2
- Python version: 3.7.3
- Operating System: Windows 10
Description
On linux (backends/bluezdbus/client.py
), connect()
function uses discover()
with a timeout : await discover(timeout=0.1, loop=self.loop)
(here).
On windows (backends/dotnet/client.py
), connect()
function uses discover()
with a defined value: devices = await discover(2.0, loop=self.loop)
(here), which leads to random errors due to the fact that Windows is unable to discover the device to connect to within 2 seconds.
Since discover()
has a timeout var, it can be good to use timeout=2.0
instead of 2.0
in client.py
, so developers can adapt the value without having to manually change Bleak.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Fix Bluetooth problems in Windows - Microsoft Support
Learn how to troubleshoot Bluetooth problems in Windows. Resolve issues connecting a Bluetooth device or accessory.
Read more >How to fix Bluetooth connection problems on Windows 10
Double-check connection · Open Settings. · Click on Devices. · Click on Bluetooth & other devices. Bluetooth device paired.
Read more >Fix Bluetooth LE Devices connectivity issues on Windows 11/10
In order to get this issue fixed temporarily, go to Device Manager > Bluetooth and try uninstalling all the instances of the Bluetooth...
Read more >Problem with connecting the 5 BLE modules in Windows 10 ...
Most probably, your issue is due to some limitation on the number of BLE devices Windows+Tp-Link UB400 is allowed to connect to compared...
Read more >HP PCs - Troubleshooting a Bluetooth connection in Windows ...
Check the wireless communication settings and for driver updates. Restart the device and computer to resolve any connectivity error states. Also, you might...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released 0.4.3 yesterday. Timeout keyword is now available in both BlueZ and .NET backend.
@sonus89 please create a new issue and add code and traceback of errors there.