Browse Source

MQTT: Reset connection timer with PubSubClient (#1702)

https://github.com/xoseperez/espurna/issues/1465#issuecomment-484566975
rules-rpn
Max Prokhorov 5 years ago
committed by GitHub
parent
commit
8e95632daf
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      code/espurna/mqtt.ino

+ 1
- 0
code/espurna/mqtt.ino View File

@ -205,6 +205,7 @@ void _mqttConnect() {
_mqttOnConnect(); _mqttOnConnect();
} else { } else {
DEBUG_MSG_P(PSTR("[MQTT] Connection failed\n")); DEBUG_MSG_P(PSTR("[MQTT] Connection failed\n"));
_mqtt_last_connection = millis();
} }
#endif // MQTT_USE_ASYNC #endif // MQTT_USE_ASYNC


Loading…
Cancel
Save