mqtt resend timeout from 10 min to 10 sec

This commit is contained in:
MichaelDvP
2023-03-20 12:17:27 +01:00
parent 514a96c8e4
commit e74d3d4cd5

View File

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