mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-31 22:47:44 +00:00
Attempt to fix MQTT reconnects while keeping good response
Attempt to fix MQTT reconnects while keeping good response
This commit is contained in:
parent
148192b80d
commit
756400de19
@ -822,8 +822,8 @@ bool Xdrv02(uint8_t function)
|
||||
|
||||
if (Settings.flag.mqtt_enabled) {
|
||||
switch (function) {
|
||||
case FUNC_EVERY_100_MSECOND: // https://github.com/knolleary/pubsubclient/issues/556
|
||||
if (MqttIsConnected()) { MqttClient.loop(); }
|
||||
case FUNC_EVERY_50_MSECOND: // https://github.com/knolleary/pubsubclient/issues/556
|
||||
MqttClient.loop();
|
||||
break;
|
||||
#ifdef USE_WEBSERVER
|
||||
case FUNC_WEB_ADD_BUTTON:
|
||||
|
Loading…
x
Reference in New Issue
Block a user