diff --git a/src/publisher/pubMqtt.h b/src/publisher/pubMqtt.h index 11744ab67..f066a38af 100644 --- a/src/publisher/pubMqtt.h +++ b/src/publisher/pubMqtt.h @@ -175,8 +175,9 @@ class PubMqtt { break; if(!mClient.connected()) break; - + #if defined(ESP8266) mClient.loop(); + #endif yield(); } while(1);