From b97a9e3e5b840f18240f89f3c098c52a4b0daba7 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Tue, 11 Apr 2023 11:20:34 +0200 Subject: [PATCH] mqtt resend timeout from 10 min to 10 sec --- src/mqtt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mqtt.cpp b/src/mqtt.cpp index e5172cf2d..1f9f644ab 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -815,8 +815,8 @@ void Mqtt::process_queue() { #if defined(EMSESP_DEBUG) LOG_DEBUG("[DEBUG] Waiting for QOS-ACK"); #endif - // if we don't get the ack within 10 minutes, republish with new packet_id - if (uuid::get_uptime_sec() - last_publish_queue_ < 600) { + // if we don't get the ack within 10 seconds, republish with new packet_id + if (uuid::get_uptime_sec() - last_publish_queue_ < 10) { return; } }