aioble.BufferedCharacteristic read returns previous message when nothing arrives from central #16936
Unanswered
XDZ-Kolos
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Community,
So basically I would like to send messages from the central to the peripheral and capture them this way:
with this BufferedCharactersitics object:
where max message length is 512, but probably that's not important.
The bug I'm seeing is that data = read_characteristic.read() returns a non empty string when called despite the fact nothing is sent by the cental. In this case the last arrived message is returned again.
Is this normal? How can I clear that buffer after a message was received?
i thought this function blocks execution until a new message arrives.
I experienced the same behavior with the normal Characteristic object as well.
Thank you for reading this.
Beta Was this translation helpful? Give feedback.
All reactions