Attempt to fix MQTT reconnects

Attempt to fix MQTT reconnects
This commit is contained in:
Theo Arends 2019-04-06 13:39:59 +02:00
parent 03f76a4a97
commit 148192b80d
1 changed files with 1 additions and 1 deletions

View File

@ -822,7 +822,7 @@ bool Xdrv02(uint8_t function)
if (Settings.flag.mqtt_enabled) { if (Settings.flag.mqtt_enabled) {
switch (function) { switch (function) {
case FUNC_LOOP: case FUNC_EVERY_100_MSECOND: // https://github.com/knolleary/pubsubclient/issues/556
if (MqttIsConnected()) { MqttClient.loop(); } if (MqttIsConnected()) { MqttClient.loop(); }
break; break;
#ifdef USE_WEBSERVER #ifdef USE_WEBSERVER