Replies: 1 comment
-
Never mind, I see the "State" section in the docs, sorry. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In native Android BLE, when using the connectGatt() function, you can pass in a BluetoothGattCallback object which allows you to receive callbacks not only for service and characteristic operations, but to see when the device connects or disconnects.
I see that kable has an internal onConnectionStateChange callback, but I don't think it's exposed in the API. I see the logger run in the debug when I connect, but not when I disconnect.
Basically, if the other BLE device I'm connected to disconnects (Whether because I chose to or it disconnects abruptly on the other end), I'd like to get a callback so I can update the GUI, etc... with that information. Is there currently a way to do that with Kable?
Beta Was this translation helpful? Give feedback.
All reactions