dotintent / FlutterBleLib

Bluetooth Low Energy library for Flutter with support for simulating peripherals
Apache License 2.0
531 stars 195 forks source link

Always cleanup native resources by default #577

Closed LEMUSADR000 closed 3 years ago

LEMUSADR000 commented 3 years ago

Is there a way to add a flag to BLE operations which would allow for transactions to always be cancelled in the case of a device disconnecting?

mikolak commented 3 years ago

All transactions are cancelled with a device disconnected error if the device disconnects. The only exceptions are things not related to the device or observing of connection state if you haven't passed the argument to terminate it on disconnection.