mirror of https://github.com/arendst/Tasmota.git
Attempt to fix MQTT reconnects
Attempt to fix MQTT reconnects
This commit is contained in:
parent
03f76a4a97
commit
148192b80d
|
@ -822,7 +822,7 @@ bool Xdrv02(uint8_t function)
|
|||
|
||||
if (Settings.flag.mqtt_enabled) {
|
||||
switch (function) {
|
||||
case FUNC_LOOP:
|
||||
case FUNC_EVERY_100_MSECOND: // https://github.com/knolleary/pubsubclient/issues/556
|
||||
if (MqttIsConnected()) { MqttClient.loop(); }
|
||||
break;
|
||||
#ifdef USE_WEBSERVER
|
||||
|
|
Loading…
Reference in New Issue