From cb2fef8b6cfd028c02634e1a43daf88039cab980 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 21 Mar 2026 08:27:45 -1000 Subject: [PATCH] Increase MAX_RESENDS_PER_LOOP from 4 to 8 --- esphome/components/mqtt/mqtt_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/mqtt/mqtt_client.cpp b/esphome/components/mqtt/mqtt_client.cpp index 5793f63e2a..ab665e2579 100644 --- a/esphome/components/mqtt/mqtt_client.cpp +++ b/esphome/components/mqtt/mqtt_client.cpp @@ -30,7 +30,7 @@ static const char *const TAG = "mqtt"; // Maximum number of MQTT component resends per loop iteration. // Limits work to avoid triggering the task watchdog on reconnect. -static constexpr uint8_t MAX_RESENDS_PER_LOOP = 4; +static constexpr uint8_t MAX_RESENDS_PER_LOOP = 8; // Disconnect reason strings indexed by MQTTClientDisconnectReason enum (0-8) PROGMEM_STRING_TABLE(MQTTDisconnectReasonStrings, "TCP disconnected", "Unacceptable Protocol Version",