From 148192b80dad2dbad2aee7a60d3678a3bf633a59 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sat, 6 Apr 2019 13:39:59 +0200 Subject: [PATCH] Attempt to fix MQTT reconnects Attempt to fix MQTT reconnects --- sonoff/xdrv_02_mqtt.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/xdrv_02_mqtt.ino b/sonoff/xdrv_02_mqtt.ino index b7daa1f34..28f32c183 100644 --- a/sonoff/xdrv_02_mqtt.ino +++ b/sonoff/xdrv_02_mqtt.ino @@ -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