Closed dlech closed 2 weeks ago
is this anyway related to the issue, i.e not able to list UUIDS of some LE devices? I have been facing this issue from a week.
I am not able to reproduce this issue. I tried:
python examples/detection_callback.py --services 0e140000-0af1-4582-a242-773e63054c68
And I get no callbacks.
BlueZ version: 5.64
I am not able to reproduce this issue. I tried:
python examples/detection_callback.py --services 0e140000-0af1-4582-a242-773e63054c68
And I get no callbacks.
BlueZ version: 5.64
Could it be a bug in bluez user space?
python examples/detection_callback.py --services 0e140000-0af1-4582-a242-773e63054c68
I just gave that command a try. Found that the simple callback is only triggered for other service ids if home assistant is running (has a bleak based bluetooth integration). My guess is that home assistant somehow removes the service id filter.
If another application is scanning, then yes the filter could be removed. I suppose that we could add an additional filter in Bleak to get the expected results even when this happens.
I found that on bluez the
service_uuids
argument is ignored and the callback is called on non-matching devices.uname -a
): Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/LinuxExample:
Results:
This doesn't happen on Windows in my tests.
Originally posted by @filmkorn in https://github.com/hbldh/bleak/issues/1447#issuecomment-2041572075