From 9353fb01d36582049c2fbe803f6e74788355545c Mon Sep 17 00:00:00 2001 From: tablatronix Date: Tue, 19 Feb 2019 22:06:16 -0600 Subject: [PATCH 1/4] added debugging log --- WiFiManager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/WiFiManager.cpp b/WiFiManager.cpp index 508f031..67445dd 100644 --- a/WiFiManager.cpp +++ b/WiFiManager.cpp @@ -798,10 +798,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 { From 6131c2d38ae9a9efe61d2240e64653bbc7f6b371 Mon Sep 17 00:00:00 2001 From: tablatronix Date: Sun, 24 Feb 2019 08:29:20 -0600 Subject: [PATCH 2/4] update basic.ino --- examples/Basic/Basic.ino | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); From 30fd2b13a669038a4b213d2f804a5f1f4ed37e69 Mon Sep 17 00:00:00 2001 From: tablatronix Date: Sun, 24 Feb 2019 08:30:57 -0600 Subject: [PATCH 3/4] remove extra define init() --- WiFiManager.h | 1 - 1 file changed, 1 deletion(-) 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: From d6cf147e5b4148752df2faba8fc88963b7479be5 Mon Sep 17 00:00:00 2001 From: tablatronix Date: Sun, 24 Feb 2019 08:41:33 -0600 Subject: [PATCH 4/4] fixing up travis, not sure why cpufreq is throwing errors or debug ? --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d41a13b..7544d8d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,14 +27,15 @@ install: - python2 get.py - popd # esp32 needs WebServer_tng for now - - git clone https://github.com/bbx10/WebServer_tng.git /usr/local/share/arduino/libraries/WebServer_tng + # - git clone https://github.com/bbx10/WebServer_tng.git /usr/local/share/arduino/libraries/WebServer_tng script: - "echo $PWD" - "echo $HOME" - "ls $PWD" - source $TRAVIS_BUILD_DIR/travis/common.sh - - arduino --board esp8266:esp8266:generic:CpuFrequency=80,CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=4M1M,led=2,LwIPVariant=v2mss536,Debug=Serial,DebugLevel=CORE --save-prefs + # - arduino --board esp8266:esp8266:generic:CpuFrequency=80,CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=4M1M,led=2,LwIPVariant=v2mss536,Debug=Serial,DebugLevel=CORE --save-prefs + - arduino --board esp8266:esp8266:generic:CrystalFreq=26,FlashFreq=40,FlashMode=qio,FlashSize=4M1M,led=2,LwIPVariant=v2mss536,Debug=Serial,DebugLevel=CORE --save-prefs - build_examples - arduino --board espressif:esp32:esp32doit-devkit-v1:FlashFreq=80,DebugLevel=info --save-prefs # some examples fail (SPIFFS defines differ esp32 vs esp8266) so we exclude them