Skip to content

fix(mqtt): re-subscribe on every connack to survive auto-reconnects#61

Merged
ben-miru merged 2 commits into
mainfrom
fix/mqtt-resubscribe-on-reconnect-main
May 8, 2026
Merged

fix(mqtt): re-subscribe on every connack to survive auto-reconnects#61
ben-miru merged 2 commits into
mainfrom
fix/mqtt-resubscribe-on-reconnect-main

Conversation

@ben-miru

@ben-miru ben-miru commented May 8, 2026

Copy link
Copy Markdown
Contributor

Forward-port of the v0.8.1 hotfix landing as #60 on release/v0.8. Read the original PR #60 for more information.

ben-miru added 2 commits May 7, 2026 20:31
Both init_client and the ConnAck Success arm of handle_event were issuing
subscribe_sync followed by subscribe_ping with identical error handling.
Bundle the pair into mqtt::device::subscribe_all so the worker calls it
in one line. Adds three unit tests covering the helper's happy path,
short-circuit-on-sync-error, and error-propagation-on-ping-error
behaviors.
@ben-miru ben-miru force-pushed the fix/mqtt-resubscribe-on-reconnect-main branch from 09f9cbd to 6aac544 Compare May 8, 2026 03:32
@ben-miru ben-miru merged commit b0969cb into main May 8, 2026
3 checks passed
@ben-miru ben-miru deleted the fix/mqtt-resubscribe-on-reconnect-main branch May 8, 2026 03:37
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.

1 participant