mirror of
https://github.com/arendst/Tasmota.git
synced 2025-08-01 15:07:42 +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) {
|
if (Settings.flag.mqtt_enabled) {
|
||||||
switch (function) {
|
switch (function) {
|
||||||
case FUNC_EVERY_100_MSECOND: // https://github.com/knolleary/pubsubclient/issues/556
|
case FUNC_EVERY_50_MSECOND: // https://github.com/knolleary/pubsubclient/issues/556
|
||||||
if (MqttIsConnected()) { MqttClient.loop(); }
|
MqttClient.loop();
|
||||||
break;
|
break;
|
||||||
#ifdef USE_WEBSERVER
|
#ifdef USE_WEBSERVER
|
||||||
case FUNC_WEB_ADD_BUTTON:
|
case FUNC_WEB_ADD_BUTTON:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user