PhilipsHue / flutter_reactive_ble

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

Suppress connecting to device on all interactions on android. #842

Open rolandmosimann opened 6 months ago

rolandmosimann commented 6 months ago

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

aabdulat1998 commented 1 month ago

Any updates on this?