You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've looked at the README 'Common Problems' section
Have you checked this problem on the example app?
No
FlutterBluePlus Version
1.28.7
Flutter Version
3.13.9
What OS?
Android
OS Version
13
Bluetooth Module
Dont know
What is your problem?
The problem occurs when trying to enable notifications for a characteristic. In the example app, it works fine, but in my own app, where I'm using a provider with Riverpod, it doesn't work and I get the following error:
CCCD descriptor for characteristic not found
This is my code.
Future<void> connectToDevice(BluetoothDevice device) async {
try {
await device.connect(mtu:null);
// state = device;final services =await device.discoverServices();
for (var service in services) {
for (var char in service.characteristics) {
if (char.uuid.uuid =="0000ffe4-0000-1000-8000-00805f9a34fb") {
print(char.descriptors);
char.lastValueStream.listen((event) {
print(event);
});
await char.setNotifyValue(true);
}
}
}
} catch (e) {
// Manejar el errorawait device.disconnect(queue:false);
print('Error al conectar: $e');
throwException();
}
In prints show like the descriptor exist buy when i try to connect throw this
Requirements
Have you checked this problem on the example app?
No
FlutterBluePlus Version
1.28.7
Flutter Version
3.13.9
What OS?
Android
OS Version
13
Bluetooth Module
Dont know
What is your problem?
The problem occurs when trying to enable notifications for a characteristic. In the example app, it works fine, but in my own app, where I'm using a provider with Riverpod, it doesn't work and I get the following error:
CCCD descriptor for characteristic not found
This is my code.
In prints show like the descriptor exist buy when i try to connect throw this
Logs
The text was updated successfully, but these errors were encountered: