From d6bf07fd712b10299b0767dc93b12bf5d4cf9b1b Mon Sep 17 00:00:00 2001 From: tablatronix <807787+tablatronix@users.noreply.github.com> Date: Mon, 18 Sep 2023 18:20:45 -0500 Subject: [PATCH] Update OnDemandConfigPortal.ino --- .../OnDemandConfigPortal/OnDemandConfigPortal.ino | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino b/examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino index 2546c6af..7509ba10 100644 --- a/examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino +++ b/examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino @@ -92,8 +92,10 @@ void setup() { // put your setup code here, to run once: Serial.begin(115200); + delay(3000); + Serial.setDebugOutput(true); - // Serial.setDebugOutput(true); + WiFi.setTxPower(WIFI_POWER_8_5dBm); Serial.println("\n Starting"); // WiFi.setSleepMode(WIFI_NONE_SLEEP); // disable sleep, can improve ap stability @@ -109,7 +111,7 @@ void setup() { // WiFi.setSortMethod(WIFI_CONNECT_AP_BY_SIGNAL); // wifi_sort_method_t sortMethod - WIFI_CONNECT_AP_BY_SIGNAL,WIFI_CONNECT_AP_BY_SECURITY // WiFi.setMinSecurity(WIFI_AUTH_WPA2_PSK); - wm.setDebugOutput(true); + wm.setDebugOutput(true, DEBUG_DEV); wm.debugPlatformInfo(); //reset settings - for testing @@ -127,7 +129,7 @@ void setup() { WiFiManagerParameter custom_input_type("input_pwd", "input pass", "", 15,"type='password'"); // custom input attrs (ip mask) const char _customHtml_checkbox[] = "type=\"checkbox\""; - WiFiManagerParameter custom_checkbox("my_checkbox", "My Checkbox", "T", 2, _customHtml_checkbox,WFM_LABEL_AFTER); + WiFiManagerParameter custom_checkbox("my_checkbox", "My Checkbox", "T", 2, _customHtml_checkbox, WFM_LABEL_AFTER); const char *bufferStr = R"( @@ -313,7 +315,7 @@ void setup() { void wifiInfo(){ // can contain gargbage on esp32 if wifi is not ready yet - Serial.println("[WIFI] WIFI INFO DEBUG"); + Serial.println("[WIFI] WIFI_INFO DEBUG"); // WiFi.printDiag(Serial); Serial.println("[WIFI] SAVED: " + (String)(wm.getWiFiIsSaved() ? "YES" : "NO")); Serial.println("[WIFI] SSID: " + (String)wm.getWiFiSSID());