Skip to content

Improve MQTT session handling#36

Open
wooyay wants to merge 2 commits into
IndaloTech:mainfrom
wooyay:mqtt_fixes
Open

Improve MQTT session handling#36
wooyay wants to merge 2 commits into
IndaloTech:mainfrom
wooyay:mqtt_fixes

Conversation

@wooyay
Copy link
Copy Markdown

@wooyay wooyay commented Dec 5, 2025

If the MQTT session disconnects for any reason don't reboot the unit but instead attempt to reconnect as this allows for recovery from incorrectly entered MQTT server details. When restarting the MQTT session reset ctxt->info so that it doesn't show as offline once reconnected.

This should resolve #20 and #30.

If the MQTT session disconnects for any reason don't reboot the unit but
instead attempt to reconnect as this allows for recovery from
incorrectly entered MQTT server details.  When restarting the MQTT
session reset ctxt->info so that it doesn't show as offline once
reconnected.
Unsubscribe from all previously subscribed topics on disconnect to
ensure the MQTT library handles them correctly on any subsequent
reconnect.
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.

MQTT server restart results in ramses_esp appearing offline.

1 participant