Skip to content

Commit

Permalink
address issue #309
Browse files Browse the repository at this point in the history
  • Loading branch information
rayshobby committed Aug 19, 2024
1 parent bc4cf84 commit 42e62c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ void OSMqtt::loop(void) {
// Only attemp to reconnect every MQTT_RECONNECT_DELAY seconds to avoid blocking the main loop
if (!_connected() && (millis() - last_reconnect_attempt >= MQTT_RECONNECT_DELAY * 1000UL)) {
DEBUG_LOGF("MQTT Loop: Reconnecting\r\n");
_done_subscribed = false;
_connect();
last_reconnect_attempt = millis();
}
Expand Down

0 comments on commit 42e62c6

Please sign in to comment.