Flutter_blue: await writeCharacteristic crash

Created on 3 Jan 2019  路  1Comment  路  Source: pauldemarco/flutter_blue

If writeCharacteristic is called too quickly (using await), it'll crash. => PlatformException(write_characteristic_error, writeCharacteristic failed, null) in messsage_codecs.dart , decodeEnvlope method.

Version: 0.4.2

Same as reported in:
https://github.com/pauldemarco/flutter_blue/issues/79#issuecomment-434938557

Most helpful comment

After read some code,I think for WriteWithoutResponse, it is also needed to wait for writeResponse, but not return immediately.

>All comments

After read some code,I think for WriteWithoutResponse, it is also needed to wait for writeResponse, but not return immediately.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pauldemarco picture pauldemarco  路  4Comments

ssaylanc picture ssaylanc  路  4Comments

ened picture ened  路  6Comments

M3sca picture M3sca  路  3Comments

RyanYANG52 picture RyanYANG52  路  6Comments