flutter_reactive_ble icon indicating copy to clipboard operation
flutter_reactive_ble copied to clipboard

Suppress connecting to device on all interactions on android.

Open rolandmosimann opened this issue 1 year ago • 1 comments

On Android, interacting with a disconnected device (e.g., writeCharacteristic/readCharacteristic) will establish a connection. However, this connection is not reflected in the plugin, as there are no propagated connection states. Therefore, the consumer cannot manage this unmonitored connection.

This behavior differs from the iOS implementation, where writeCharacteristic on a disconnected device results in an error.

This PR aligns the behavior of the Android implementation. Calling writeCharacteristic, readCharacteristic, etc., now results in an error.

Detailed description in issue #589

solves: #589

rolandmosimann avatar Feb 02 '24 17:02 rolandmosimann

Any updates on this?

aabdulat1998 avatar Jun 27 '24 19:06 aabdulat1998