Fix wifi reconnect on wifi on/off
This commit is contained in:
parent
ef446ebd19
commit
f9985cc2c1
@ -369,7 +369,9 @@ void loop() {
|
|||||||
TeleinfoRetrieve(teleIinst, telePapp, teleBase, batchInfo);
|
TeleinfoRetrieve(teleIinst, telePapp, teleBase, batchInfo);
|
||||||
|
|
||||||
if (mode == BOOTMODE_NORMAL)
|
if (mode == BOOTMODE_NORMAL)
|
||||||
MqttBatchPublish(batchInfo, conf.mqttUser, conf.host);
|
if (MqttBatchPublish(batchInfo, conf.mqttUser, conf.host))
|
||||||
|
WifiSetup(conf);
|
||||||
|
|
||||||
nbCycle = 0;
|
nbCycle = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user