-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pybricksdev.ble: filter name is None in find_device()
A recent change in Bleak made this problem more apparent since it happens nearly all of the time on Windows now. It is possible to get an advertisement callback before the SCAN_RSP has been received in which case there will be no local name yet. So we need to ignore those responses and wait for one that does have the local name to ensure that the found device has a useful .name attribute. Fixes: https://github.com/orgs/pybricks/discussions/1010
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters