-
Notifications
You must be signed in to change notification settings - Fork 83
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.observe didUpdateNotificationStateForCharacteristic #653
Comments
What version of Kable are you using? |
hi twyatt, the Kable version I use is 0.24.0, this problem occurs on iOS, Android is normal |
I added the observationExceptionHandler method, and the program can receive the notification data from the Bluetooth device normally. val peripheral = defaultScope.peripheral(it) {
onServicesDiscovered {
bleLogger.i("""BleClient/startScan/onServicesDiscovered:${it.peripheralName}""")
}
observationExceptionHandler { cause ->
// Log failure instead of propagating associated `observe` flow.
bleLogger.i("""BleClient/startScan/observationExceptionHandler:$cause""")
}
} Log:
Why does the program become normal after adding the observationExceptionHandler method? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use the code below,The kable library reports an error
error message:
How to solve this problem? Thanks!
The text was updated successfully, but these errors were encountered: