Get repeated advertisements from the same device #1594
-
I have a device that advertises about every 100ms. Once a second it updates a byte of service data in that advertisement. BleakScanner(callback) seems to only call callback on that device once every (roughly) 10 seconds. The documentation says that callback is only called on new or changed advertisements. If data counts as a change I'd expect it to get called every second. If data doesn't count as a change I'd expect it to only get called once. Either way the behavior is unexpected (to me). What I'd like is the former, or failing that, a call back for every advertisement. Is there any way to configure BleakScanner to do this? Here's the code I'm using for testing:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
What operating system and operating system version are you using? |
Beta Was this translation helpful? Give feedback.
The problem could be because you are using a rather old kernel and BlueZ. These haven't been tested with Bleak in several years.