diff --git a/sonoff/WiFiClientSecureLightBearSSL.cpp b/sonoff/WiFiClientSecureLightBearSSL.cpp index ebb913589..6f4154fc8 100644 --- a/sonoff/WiFiClientSecureLightBearSSL.cpp +++ b/sonoff/WiFiClientSecureLightBearSSL.cpp @@ -22,6 +22,9 @@ #define LWIP_INTERNAL +#include "my_user_config.h" +#ifdef USE_MQTT_TLS + #include #include #include @@ -43,8 +46,6 @@ extern "C" { #include #include "c_types.h" -#include "my_user_config.h" - #define DEBUG_TLS #ifndef ARDUINO_ESP8266_RELEASE_2_5_2 @@ -944,3 +945,5 @@ bool WiFiClientSecure_light::_connectSSL(const char* hostName) { } }; + +#endif // USE_MQTT_TLS