diff --git a/include/Global.h b/include/Global.h index 9e278511..674b9a3a 100644 --- a/include/Global.h +++ b/include/Global.h @@ -48,6 +48,8 @@ extern AsyncWebSocket ws; extern TickerScheduler ts; +extern WiFiClient espClient; + extern PubSubClient client_mqtt; extern StringCommand sCmd; diff --git a/src/Global.cpp b/src/Global.cpp index f6890b2b..f72e8cb6 100644 --- a/src/Global.cpp +++ b/src/Global.cpp @@ -11,6 +11,8 @@ AsyncWebSocket ws; TickerScheduler ts(TEST + 1); +//WiFiClient espClient; + PubSubClient client_mqtt(espClient); StringCommand sCmd;