Error in write and notify characteristics platform exception
Hello,
I have been facing the same issue with this library flutter blue.
await setNotifyValue(true); // exception: set_notification_error, error when writing the descriptor, null, null
await writeChar.write(cmd); // exception: PlatformException(write_characteristic_error, writeCharacteristic failed, null, null).
I am not running this lines concurrently I have used await. I am working with 3 BLE devices, it works most of them time but sometimes it start getting this exception and my app misbehaves and this error can happen in any of the device not even specific to any device. any idea?
this works for me ( try up to 3 times to write)
Future
@johananh this worked for me. Thank you!!!