-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
[BLE] Subscription/Notification does not work #24
Comments
Please file a reproducible case where possible. This is still in beta, so I need help, not just issues. The GATT server is not completed fully yet obviously. |
The best case possible is your own excellent Samples project: In Sample.BlePeripherals.MainViewModel, there's
Using the "Bluetooth LE Explorer" app from Windows Store I've managed to list the characteristic, it is correctly displayed as "notifiable", but attempting to subscribe to it fails. The code inside the "SetNotification" subscription handler is never called. |
I also experienced this issue, but in my case it was incorrect configuration for device which advertise characteristic. Check is it everything OK with nrfConnect application(check it on iOS and Android store), and if even nrfConnect fail -something wrong with your BLE configuration |
I have just tried the ACR Bluetooth LE app and the problem exists there too (other apps like BLE Sim work correctly). Reading https://stackoverflow.com/questions/17910322/android-ble-api-gatt-notification-not-received "All of the writeGattDescriptors must come first and complete before you issue any readCharacteristic calls." No idea, I thought this might help... |
@ThumbGen Did you try anything from the link you provided? |
This is working fine for me using iOS nrf connect to android shiny gatt server running in the sample app. Was there an exception? Anything in the output window. |
Sorry for the delayed reply, indeed it was a problem on my side. Thank you! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Please check all of the platforms you are having the issue on (if platform is not listed, it is not supported)
Feature Library
Version of OS(s) listed above with issue
Android 8.0
Version of Library
1.0.0.244-beta
Expected Behavior
Subscribing to notifications should work.
Actual Behavior
None of the 3 GATT clients I've tried is able to subscribe to the "notifiable" characteristics offered by a Shiny GATT server.
The problem is reproducible with the latest Shiny-Samples project too (I saw there are notifications there too).
The text was updated successfully, but these errors were encountered: