-
Notifications
You must be signed in to change notification settings - Fork 52
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
connect
does oblivious to connection failure.
#7
Comments
after some more tries, it looks like I don't get that error every time, which is pretty odd |
What do you get instead when you don't have a 133 GATT_ERROR ?
…On Tue, Jan 23, 2018, 10:53 PM Brian Parma ***@***.***> wrote:
after some more tries, it looks like I don't get that error every time,
which is pretty odd
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGpvBdaqGbi528m6iIMobbXookzTNBtKks5tNlTbgaJpZM4RqXPg>
.
|
I was getting nothing. |
This is expected since the device is not in range and powered on. The 133 GATT_ERROR is due to issues in the Bluetooth Stack however. As documented, it's your responsibility to handle connection status changes using the dedicated channel (so you can retry, or close the |
Did using |
If I try to connect to a device that is turned off, and wait with
connect().await()
, I will eventually get aStateChange
fromonConnectionStateChange
with astatus = 133 (GATT_ERROR)
andnewState = DISCONNECTED
, but theawait
will never complete.I currently wrap it in a
withTimeout
, but it would be nice if the connection error threw on theawait
, so I don't have to wait for the full timeout.The text was updated successfully, but these errors were encountered: