diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 707c43c..9423276 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -800,10 +800,12 @@ bool WiFiManager::wifiConnectDefault(){ * @return bool success */ bool WiFiManager::setSTAConfig(){ + DEBUG_WM(F("STA static IP:"),_sta_static_ip); bool ret = true; if (_sta_static_ip) { + DEBUG_WM(DEBUG_VERBOSE,F("Custom static IP/GW/Subnet/DNS")); if(_sta_static_dns) { - DEBUG_WM(DEBUG_VERBOSE,F("Custom STA IP/GW/Subnet/DNS")); + DEBUG_WM(DEBUG_VERBOSE,F("Custom static DNS")); ret = WiFi.config(_sta_static_ip, _sta_static_gw, _sta_static_sn, _sta_static_dns); } else { diff --git a/WiFiManager.h b/WiFiManager.h index cedbbb8..9b17f45 100644 --- a/WiFiManager.h +++ b/WiFiManager.h @@ -125,7 +125,6 @@ class WiFiManagerParameter { void setValue(const char *defaultValue, int length); protected: - void init(const char *id, const char *label, const char *defaultValue, int length, const char *custom); void init(const char *id, const char *label, const char *defaultValue, int length, const char *custom, int labelPlacement); private: diff --git a/examples/Basic/Basic.ino b/examples/Basic/Basic.ino index 26ec6d4..381fab1 100644 --- a/examples/Basic/Basic.ino +++ b/examples/Basic/Basic.ino @@ -3,10 +3,12 @@ void setup() { // put your setup code here, to run once: Serial.begin(115200); + + // WiFi.mode(WiFi_STA); // it is a good practice to make sure your code sets wifi mode how you want it. //WiFiManager, Local intialization. Once its business is done, there is no need to keep it around WiFiManager wm; - + //reset settings - wipe credentials for testing //wm.resetSettings();