Skip to content
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

backends/scanner: always filter by service_uuids #1559

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

dlech
Copy link
Collaborator

@dlech dlech commented Apr 30, 2024

It was noted that on Linux, if another app was scanning at the same time, BlueZ would trigger RSSI changes for all devices, even if they they didn't match the service_uuids filter.

This change ensures that we always filter by service_uuids, even if the OS isn't doing it for us.

On Windows, the OS wasn't filtering for us anyway, so we can just move that code to the shared call_detection_callbacks() so that all backends will make use of it.

Fixes: #1534

It was noted that on Linux, if another app was scanning at the same
time, BlueZ would trigger RSSI changes for all devices, even if they
they didn't match the service_uuids filter.

This change ensures that we always filter by service_uuids, even if
the OS isn't doing it for us.

On Windows, the OS wasn't filtering for us anyway, so we can just move
that code to the shared call_detection_callbacks() so that all backends
will make use of it.

Fixes: #1534
@dlech dlech merged commit ea199f1 into develop Apr 30, 2024
14 checks passed
@dlech dlech deleted the fix-service-uuid-filter branch April 30, 2024 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BleakScanner service_uuids argument not working in BlueZ backend
1 participant