Fix wifi reconnect on wifi on/off

This commit is contained in:
Mathieu Maret 2023-03-27 21:27:26 +02:00
parent ef446ebd19
commit f9985cc2c1

View File

@ -369,7 +369,9 @@ void loop() {
TeleinfoRetrieve(teleIinst, telePapp, teleBase, batchInfo);
if (mode == BOOTMODE_NORMAL)
MqttBatchPublish(batchInfo, conf.mqttUser, conf.host);
if (MqttBatchPublish(batchInfo, conf.mqttUser, conf.host))
WifiSetup(conf);
nbCycle = 0;
}
}