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; } }