-
Notifications
You must be signed in to change notification settings - Fork 34
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
ClientBleGattCharacteristic.read() never returns when device is out of range #132
Comments
Im having this same issue, my read() is not returning. |
I am having this issue as well. I spent almost week to in troubleshooting everything and varified it is bug |
I was encountering this issue but was able to resolve it by performing all calls in the same coroutine scope. As soon as the code tries to communicate with the BLE device on a different scope, all calls seem to stop.
|
When is this going to be addressed? This issue renders the library unusable in many cases. |
Hi, |
In some situation, with the bluetooth device put in a disconnection pocket, we can have the suspend function
ClientBleGattCharacteristic.read()
never returning.In my point of view, the expected behaviour would be to have a DeviceDisconnectedException when the method is called while device is disconnected, and to have a GattOperationException when the connection is lost during the read.
To bypass the issue, I wrote this code with a 15 seconds timeout:
The bug is easy to reproduce on 1.0.15.
I did not meet it on 1.0.9.
The text was updated successfully, but these errors were encountered: