Alex2ESP/src
David 2ed52c8721 Reconnect with back-off on every disconnect reason and log it
The session is opened again whatever AsyncMqttClient gives as the reason, after 1 s doubling
to 60 s (AlexaReconnectBackoff, reset when a session opens), and only while Wi-Fi is up.
1.1.0 retried a lost TCP connection every 5 s and nothing else, silently: a refused password
or a broker that was restarting left the board offline until a reset.
Every disconnect prints its reason in words and the wait before the next attempt. The first
connect waits for Wi-Fi; a connect without an answer after 30 s counts as failed, because the
MQTT client reports nothing when no TCP connection was made. Keep-alive 30 s.
basicLight: RAM 34,452 -> 34,476 B, flash 337,461 -> 338,281 B; host tests 41 -> 45.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 18:43:00 +00:00
..
Alex2ESP.cpp Reconnect with back-off on every disconnect reason and log it 2026-09-28 18:43:00 +00:00
Alex2ESP.h Reconnect with back-off on every disconnect reason and log it 2026-09-28 18:43:00 +00:00
AlexaBridgeLogic.cpp Reconnect with back-off on every disconnect reason and log it 2026-09-28 18:43:00 +00:00
AlexaBridgeLogic.h Reconnect with back-off on every disconnect reason and log it 2026-09-28 18:43:00 +00:00
AlexaCompat.h Drop the HTTP fallback: directives arrive on <root>/<id>/alexaDirective and reports leave over MQTT 2026-09-28 14:31:57 +00:00
AlexaDevice.cpp Version 1.2.0 in library.json, library.properties and the discovery attributes 2026-09-28 16:02:52 +00:00
AlexaDevice.h Version 1.2.0 in library.json, library.properties and the discovery attributes 2026-09-28 16:02:52 +00:00
AlexaInterface.h Drop the HTTP fallback: directives arrive on <root>/<id>/alexaDirective and reports leave over MQTT 2026-09-28 14:31:57 +00:00
AlexaLimits.h Queue up to eight directives for loop(); drop the repeat of a directive while it arrives 2026-09-28 15:57:03 +00:00
AlexaLog.cpp AlexaLog: compile in projects that define DEBUG, ERROR or INFO as macros 2026-09-28 15:30:46 +00:00
AlexaLog.h AlexaLog: compile in projects that define DEBUG, ERROR or INFO as macros 2026-09-28 15:30:46 +00:00
AlexaStatusMessage.cpp Drop the HTTP fallback: directives arrive on <root>/<id>/alexaDirective and reports leave over MQTT 2026-09-28 14:31:57 +00:00
AlexaStatusMessage.h Drop the HTTP fallback: directives arrive on <root>/<id>/alexaDirective and reports leave over MQTT 2026-09-28 14:31:57 +00:00
AlexaTransport.h Leave room for the answer: ALEX2ESP_MAX_MESSAGE defaults to ALEX2ESP_MAX_DIRECTIVE + 1024 2026-09-28 15:38:46 +00:00
AlexaUtils.h Drop the HTTP fallback: directives arrive on <root>/<id>/alexaDirective and reports leave over MQTT 2026-09-28 14:31:57 +00:00
AlexaVersion.h Version 1.2.0 in library.json, library.properties and the discovery attributes 2026-09-28 16:02:52 +00:00