Skip to content

Added disconnection handling, and fixed state changing of navigation on connection.#111

Merged
zjs81 merged 3 commits into
zjs81:mainfrom
wel97459:dev-reconntion
Jan 29, 2026
Merged

Added disconnection handling, and fixed state changing of navigation on connection.#111
zjs81 merged 3 commits into
zjs81:mainfrom
wel97459:dev-reconntion

Conversation

@wel97459

Copy link
Copy Markdown
Collaborator

Added error catching to requestBatteryStatus to call _handleDisconnection when it fails update.
Updated ScannerScreen to manage navigation state logic on connection.

zjs81
zjs81 previously requested changes Jan 29, 2026
Comment thread lib/connector/meshcore_connector.dart Outdated
to call _handleDisconnection when it fails update.

Updated ScannerScreen to manage navigation state logic on connection.
@zjs81

zjs81 commented Jan 29, 2026

Copy link
Copy Markdown
Owner

@cursor review

@zjs81 zjs81 dismissed their stale review January 29, 2026 04:21

all good

Zach added 2 commits January 28, 2026 21:29
- Fix memory leak by adding dispose() to remove connection listener
- Fix typo: changedNavgation -> _changedNavigation
- Add mounted check before navigation to prevent errors
- Remove overly aggressive _handleDisconnection() call on battery request failure
- Only reset battery flag on error to allow retry without disconnecting
This was the author's original intent - use battery request failure
as a signal that the connection is lost.
@zjs81 zjs81 merged commit bf8f002 into zjs81:main Jan 29, 2026
6 checks passed
@wel97459 wel97459 deleted the dev-reconntion branch March 7, 2026 09:53
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