-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[peripheral] Received UpdateValue result for characteristic without a continuation #17
Comments
Hi! What version of the library are you using? We recently made some changes in 1.4.0 to silence this specific error when the characteristic is notifying. For logging we are using
Unless there's a bug, this should only happen if you update a peripheral's characteristic without using |
Using 1.4.0, but the changes you are referring is not included in that. All the communication goes through I see a lot of these logs when reconnecting to a device, like the queue wouldn't have been flushed when disconnected. Probably not the actual logging slows down, but processing the un-flushed queue or at least that is how it feels. |
Ah, I see. Just pushed a new release 1.4.1 with the changes.
The queues won't get flushed when disconnected, so if they should have their continuation. They will however get flushed on It's hard to know what's causing the issue you're seeing without looking at the code or having a set of steps to reproduce, but hopefully the latest release addresses your issue. Let me know if you're still seeing it. |
I don't find the place in the code where queues are flushed, can you please point the place for me? I think queues should be flushed in disconnect. I don't see the reason why there should be something in queues when connecting. |
Flushing is currently happening in the
Currently, the library is trying to do the bare minimum to support async/await, while making as little assumptions as possible. Keeping the library small allows people to use or fork it without needing to commit too much or make too many compromises. That said, I definitely see the value of flushing all queues upon disconnection. If you're going this route, you can go to the central manager's Also note that you can always cancel any queued operations manually when a peripheral disconnects. Just wrap the |
Getting lots of "[peripheral] Received UpdateValue result for characteristic without a continuation" prints in console. This seems to slow down reads and writes, but eventually everything is working ok. The amount of prints seems to increase when disconnecting and connecting again to a device.
Has this something to do with queueing of commands? Is there are way to flush the queue?
The text was updated successfully, but these errors were encountered: