-
Notifications
You must be signed in to change notification settings - Fork 300
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
winrt: No advertisments received due to BluetoothLEAdvertisementWatcherStatus.ABORTED #1535
Comments
There should only be one
This indicates that there is something wrong with your Bluetooth adapter. E.g. it is disabled or something like that. We should probably catch this and raise and exception instead of failing silently with no advertisements received. So, yes, likely something related to Windows update or just have Bluetooth switch turned off. But there is some improvement we could make to Bleak to better help diagnose such issues. |
Hey, Thanks for the ideas on how to write it better. The problem seemed to be on the Windows side. Now it works again.
For my side that would be helpful, or an error message then I can narrow down my problem next. Cheers, |
Let's leave this one open to remind us to do that. |
If the problem is reproducible, knowing how to reproduce it for testing would be helpful. |
I do not know how to reproduce the problem. After the second Windows Update, the bug was gone. |
If Bluetooth is off or not present, the status will be ABORTED. We can use this to give a helpful error message. Also wait some time for the status to change to STARTED before returning. Fixes: #1535
If Bluetooth is off or not present, the status will be ABORTED. We can use this to give a helpful error message. Also wait some time for the status to change to STARTED before returning. Fixes: #1535
Description
I used the bleak library yesterday and everything worked fine. I tried it again today and bleak does not find any BLE devices in the area, even though there are tons of BLE devices. I did a Windows update. Maybe that explains the problem. Am I doing something wrong? Thanks for the help.
bleak version:
bleak 0.21.1
numpy 1.26.4
pip 23.2.1
winrt-runtime 2.0.0b1
winrt-Windows.Devices.Bluetooth 2.0.0b1
winrt-Windows.Devices.Bluetooth.Advertisement 2.0.0b1
winrt-Windows.Devices.Bluetooth.GenericAttributeProfile 2.0.0b1
winrt-Windows.Devices.Enumeration 2.0.0b1
winrt-Windows.Foundation 2.0.0b1
winrt-Windows.Foundation.Collections 2.0.0b1
winrt-Windows.Storage.Streams 2.0.0b1
Python version:
Python 3.12.1
** Operating System:**
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 N/A Build 22631
What I Did
Logs
This is what I see on Nordic's nRF Connect app:
The text was updated successfully, but these errors were encountered: