-
Notifications
You must be signed in to change notification settings - Fork 419
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
[Help]: Cannot get BLE Indication to work but Notifications ok #662
Comments
|
As I am using the Flutter Blue pluggin, I am not sure if the corresponding wrapper function for enabling Indication is implemented with the package. It appears to support enabling Notifications as Indication requires a different variable to be sent via the BLE i.e 0x02 as oppose to 0x01 for Notifications. Can I combine core Bluetooth with the Package usage? |
No, we do not provide that because it is not possible on iOS. If you want indications to be enabled, you need to delete support for notifications on your BLE peripheral device. |
in 1.27.1, i've added a You should not use this option if you want to support iOS. |
Thanks for the addition. I can confirm that I can get Indications to work with the new version on Android. Although the problem I am trying to solve still remains that some Indications/Notifications don't reach the app side (I thought switching to Indications will solve this but seems to behave the same which makes sense from this explanation of the Indication - |
Requirements
Have you checked this problem on the example app?
Yes
FlutterBluePlus Version
1.25.1
Flutter Version
3.16.0-23.0.pre.26
What OS?
Android
OS Version
13
Bluetooth Module
ST BlueNRG-2
What is your problem?
Using
await characteristic.setNotifyValue(true);
to enable Indications as suggested in the guide does not enable indications on the BLE device rather sets a Notification enable flag on an Indication Characterisitcs. Additionally, I can't receive any update (Indications) from the device using the suggested use ofcharacteristic.onValueReceived.listen((value) {});
Note: That if I change the device characteristics to Notify instead of Indicate, all works well but needs Indication as some notifications are not received/acknowledged.
I also can see indication working if using a Bluetooth GATT profile app like nRFConnect
Logs
The text was updated successfully, but these errors were encountered: