Adding the scan.pattern filter, introduced in Bluez 5.54
See original GitHub issue- bleak version: 0.14.2
- Python version: 3.9
- Operating System: Debian
- BlueZ version (
bluetoothctl -v
) in case of Linux: 5.55
Description
Would you be open to a PR that would introduce the scan.pattern filter that was introduced in Bluez 5.54 (https://git.kernel.org/pub/scm/bluetooth/bluez.git/log/?h=5.54). I’m interested in offloading some of the responsibility of MAC address filtering onto Bluez rather than on my Python code.
What I Did
Using bluetoothctl, by entering the following commands, you can see the type of functionality that I am interested in
bluetoothctl
menu scan
pattern AB:12 # only discover devices with a MAC address starting w/ AB:12
back
scan on
EDIT: added URL To 5.54 commits
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Adding the scan.pattern filter, introduced in Bluez 5.54
I don't believe so. The bluezdbus scanner supports filtering on UUIDs, RSSI, DuplicateData, Pathloss and Transport. Unless you're referring to ...
Read more >BlueZ-5.54 - Linux From Scratch!
Introduction to BlueZ. The BlueZ package contains the Bluetooth protocol stack for Linux. This package is known to build and work properly ...
Read more >Bluetooth: SetDiscoveryFilter for filtered scanning - Linumiz
Filters are typically used to narrow down our search. By default “StartDiscovery” will scan for all the nearby bluetooth devices.
Read more >Call StartDiscovery() through dbus without resetting the LE ...
With BlueZ D-Bus the Adapter API contains a SetDiscoveryFilter() method, which allows you to install a corresponding filter.
Read more >Alpine Linux - Failed to start discovery: org.bluez.Error ...
Everything seems to be alive and kicking, but it just refuses to enable scan, no matter how many reboots, or restarting bluetooth service,...
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
It would also be nice to move
DuplicateData
so everything is in the same order as the BlueZ docs while we are touching this.I see what you mean. It looks like we should add
Discoverable
as well. Happy to take a PR to add these.