From e74d3d4cd56f09a7134f0d9d712b583417ddff24 Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 20 Mar 2023 12:17:27 +0100 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 3280bc2bc..f8d93f36e 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -814,8 +814,8 @@ void Mqtt::process_queue() { // it will have a real packet ID if (mqtt_message.packet_id_ > 0) { LOG_DEBUG("Waiting for QOS-ACK"); - // 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; } }