diff --git a/src/net_manager.cpp b/src/net_manager.cpp index 745f68ce..f740ab25 100644 --- a/src/net_manager.cpp +++ b/src/net_manager.cpp @@ -10,6 +10,7 @@ #ifdef ESP32 #include +#include #include // Resolve URL for update server etc. #elif defined(ESP8266) #include @@ -92,7 +93,8 @@ void NetManagerTask::wifiStartAccessPoint() WiFi.enableAP(true); WiFi.enableSTA(true); // Needed for scanning WiFi.softAPConfig(_apIP, _apIP, _apNetMask); - + // set country code to "world safe mode" + esp_wifi_set_country_code("01", true); // Create Unique SSID e.g "emonESP_XXXXXX" String softAP_ssid_ID = String(_softAP_ssid) + "_" + ESPAL.getShortId();