Maximum rate that advertisements can be scanned/read #831
-
Is there a maximum rate at which advertisements can be scanned? I have a peripheral broadcasting an advertisement every 20 ms, and would like to be able to read as many of the advertising packets as possible (it doesn't matter if misses a few here and there). The idea is that I am able to plot sensor data which is embedded in the advertising packet. My starting point is the code below, but it seems to be duplicating and missing a lot of packets so there might be a better way to do it.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Bleak usually only calls the callback when the advertising data changes. If the data changes in every packet, then theoretically Bleak should receive it. But the OS may handle things differently internally. There is some discussion about this in #394. |
Beta Was this translation helpful? Give feedback.
Bleak usually only calls the callback when the advertising data changes. If the data changes in every packet, then theoretically Bleak should receive it. But the OS may handle things differently internally. There is some discussion about this in #394.