Closed roger66 closed 5 months ago
peripheral's descriptor only have PERMISSION_READ,use FBP1.13 no problem
If you want the same behavior as 1.1.3, you can just ignore the error.
FBP 1.1.3 did not check for errors. It had no error handling support.
It's possible your WRITE is working despite the error. Or it's possible its not working and you just never noticed. Only the ble device knowns for sure if it worked or not.
After ignoring,Does onValueReceived work?
depends on your device!
Is it the same if I don't call setNotifyValue?
not the same. the request is sent if you call setNotifyValue
If I ignore the setNofityValue error
E/flutter (31546): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FlutterBluePlusException | writeCharacteristic | android-code: 133 | UNKNOWN_GATT_ERROR (133)
E/flutter (31546): #0 BluetoothCharacteristic.write (package:flutter_blue_plus/src/bluetooth_characteristic.dart:215:9)
E/flutter (31546):
writeCharacteristic not work
Before I call setNotifyValue,writeCharacteristic can work
you should be looking at the logs on your device. these are GATT errors. i.e. device errors.
Requirements
Have you checked this problem on the example app?
No
FlutterBluePlus Version
1.31.12
Flutter Version
3.16.9
What OS?
Android
OS Version
10
Bluetooth Module
unknown
What is your problem?
setNotifyValue return GATT_WRITE_NOT_PERMITTED,but FBP1.1.3 is success
Logs