PhilipsHue / flutter_reactive_ble

Flutter library that handles BLE operations for multiple devices.
https://developers.meethue.com/
Other
662 stars 326 forks source link

Exception when trying to write Characteristic with Response #775

Open RubenKid opened 1 year ago

RubenKid commented 1 year ago

Describe the bug Exception is raised when try to write credentials with Response using an iOS device

To Reproduce Steps to reproduce the behavior:

  1. Connect to one / many devices using connectTo() / connectToAdvertisingDevice()
  2. write to non-protected characteristic
  3. Observe a failure with below exception

Exception: GenericFailure(code: WriteCharacteristicFailure.unknown, message: "Error Domain=CBATTErrorDomain Code=14 "Unlikely error." UserInfo={NSLocalizedDescription=Unlikely error.}"

Expected behavior Characteristic should be written

Smartphone / tablet

wcoder commented 1 year ago

CBATTErrorDomain Code=14 "Unlikely error." looks like it's an iOS error during communication

RubenKid commented 1 year ago

Checked with iOS nRF Connect and It seems the device disconnects after writing, this could be a reason I believe

Untitled