reset mqtt fail count when settings change

This commit is contained in:
proddy
2020-07-18 20:58:03 +02:00
parent 938952db57
commit 6cd9113193
2 changed files with 10 additions and 2 deletions

View File

@@ -280,6 +280,9 @@ void Mqtt::on_connect() {
publish("info", doc, false); // send with retain off
publish("status", "online", true); // say we're alive to the Last Will topic, with retain on
reset_publish_fails(); // reset fail count to 0
LOG_INFO(F("MQTT connected"));
}