[AIOBLE] What is the recommended way to handle a burst of notified packets as a client? #15544
Unanswered
ekspla
asked this question in
Libraries & Drivers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Client: MPY-1.23.0 on ESP32-WROOM
Peripheral: a device that seems to be using Nordic UART service
It seems to me that a burst of notified packets cannot be handled with Client.notified(),
because of
self._notify_queue = deque((), 1)
(size of 1) in aioble/client.py.By using a
while
loop andcharacteristic.notified
, lots of notified packets were lost.In client.py there is, in a comment, as follows:
I have a question:
How can I specify
capture=True
or increase the size of the_notify_queue
?As a woraround, I use a code like followings (this is not a real code that works as is) to handle
the burst of packets, and it seems to be working in my use case.
But I do not think that using
characteristic._notify_queue
from outside is recommended.There may be a better way in such a case.
[EDITED]
Beta Was this translation helpful? Give feedback.
All reactions