question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hbldhcommented, Jul 1, 2019

Released 0.4.3 yesterday. Timeout keyword is now available in both BlueZ and .NET backend.

0reactions
hbldhcommented, Sep 7, 2019

@sonus89 please create a new issue and add code and traceback of errors there.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found