-
Notifications
You must be signed in to change notification settings - Fork 589
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
Connection will be closed after catching an Error with onErrorResumeNext #26
Comments
Hello there. Sorry for no response - we're discussing how to address this issue. Usually any error during communication means the connection is no longer active and usable. We will get back to you. |
The problem is: Bonding for BLE on Android is pain in the ass. Thanks for the good work so far. |
@tatewaki I have the feeling you're mixing bonding with connecting, I believe those are not the same. |
I know that bonding and connection is not the same. And because of that, I reported the issue. |
I have the same issue, is there any work around for now without needing to reconnect after bonding is successful? |
Hello @asmirsabanovic |
@dariuszseweryn thanks for the fast response, but I don't follow completely. Here is how I do it now: //Read uuid that needs bonding User enters correct PIN -> Bonding Successful I get: BleGattException{status=137, bleGattOperation=BleGattOperation{description='CHARACTERISTIC_READ'}} And this disconnects the connection. I do a reconnect and this time the read will work. How can I do this with your suggestion to avoid the disconnect after bonding is successful? Thanks again. |
You would need to make some changes in the I don't have any experience with bonded devices. Can you confirm that the |
If I don't pass the Yes, the |
Could you be so kind and paste these two classes to your project:
and an Observable
Subscribe to |
…nection if they are not related directly to `onConnectionStateChanged()`. Summary: #26 Reviewers: michal.zielinski, pawel.urban Reviewed By: pawel.urban Differential Revision: https://phabricator.polidea.com/D2347
Finally this should be fixed / available in |
Summary
On each error the connection get closed. If i will catch an Error with onErrorResumeNext or something, the Connection also get closed.
Preconditions
In some cases, it makes no sense to close the connection.
e.g. BleGattException{status=137, bleGattOperation=BleGattOperation{description='CHARACTERISTIC_READ'}}.
On some devices it is necessary to retry the action without disconnect.
The text was updated successfully, but these errors were encountered: