Reliable MQTT auto-reconnect #1

Merged
zyberzero merged 3 commits from mqtt-auto-reconnect into main 2026-11-03 17:56:35 +00:00
3 Commits
Author SHA1 Message Date
zyberzeroandClaude Opus 5.5 917a149bc2 Reconnect MQTT on disconnect events with backoff
Replace the hardcoded 5 s IsConnected poll with a loop driven by
DisconnectedAsync (plus an idle safety check), retrying on the
ReconnectBackoffSeconds schedule. Disconnects are now logged with their
reason, and keep-alive and connect timeout come from config so dead
links are detected and connect attempts can't block for 100 s.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-03 18:51:43 +01:00
zyberzeroandClaude Opus 5.5 e22b2038d0 Add MQTT reconnect, keep-alive and connect timeout options
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-03 18:51:43 +01:00
zyberzeroandClaude Opus 5.5 8dd42d24bc Specify MQTT reconnect behavior
Add SPEC.md §5.2 describing reconnect requirements (backoff, keep-alive
detection, disconnect logging, unique ClientId), the new Mqtt config
keys, the matching PLAN.md design and verification steps, and
IMPLEMENTATION.md increment 6.6. Also drop the stale WithReconnectDelay
reference, which only exists on ManagedMqttClient.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-03 18:51:43 +01:00