FlutterBleLib icon indicating copy to clipboard operation
FlutterBleLib copied to clipboard

`write(withResponse: true)` does not return response

Open mikolak opened this issue 4 years ago • 2 comments

write[Characteristic](withResponse: true) does not return response, which should be passed as value from the native clients.

Proposal: separate write into writeWithResponse and writeWithoutResponse, make writeWithResponse return CharacteristicWithResponse or `Uint8List.

mikolak avatar Apr 12 '21 18:04 mikolak

Isn't this intended behavior? WriteWithResponse means the peripheral sends back an ack (0x13) after writing to make sure the write request worked.

jobfeikens avatar Apr 26 '21 12:04 jobfeikens

Server might return a different response which would be swallowed.

mikolak avatar Apr 26 '21 19:04 mikolak