Skip to content

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

Open
rolandmosimann wants to merge 2 commits into
PhilipsHue:masterfrom
BelimoAutomationAG:android_error_when_interacting_with_not_connected_device
Open

Suppress connecting to device on all interactions on android.#842
rolandmosimann wants to merge 2 commits into
PhilipsHue:masterfrom
BelimoAutomationAG:android_error_when_interacting_with_not_connected_device

Conversation

@rolandmosimann

Copy link
Copy Markdown

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

Copy link
Copy Markdown

Any updates on this?

@rolandmosimann

Copy link
Copy Markdown
Author

Hey @Taym95, any chance to get this in?

@rolandmosimann rolandmosimann force-pushed the android_error_when_interacting_with_not_connected_device branch from 68b4e06 to 594d04d Compare January 30, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants