Skip to content

Commit

Permalink
wifi mode debug
Browse files Browse the repository at this point in the history
  • Loading branch information
tablatronix committed Jan 23, 2024
1 parent 0d84861 commit 607dfdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/Super/OnDemandConfigPortal/OnDemandConfigPortal.ino
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ void setup() {
wm.setConfigPortalBlocking(false);
}


//sets timeout until configuration portal gets turned off
//useful to make it all retry or go to sleep in seconds
wm.setConfigPortalTimeout(TESP_CP_TIMEOUT);
Expand Down Expand Up @@ -327,7 +328,8 @@ void setup() {
void wifiInfo(){
// can contain gargbage on esp32 if wifi is not ready yet
Serial.println("[WIFI] WIFI_INFO DEBUG");
// WiFi.printDiag(Serial);
WiFi.printDiag(Serial);
Serial.println("[WIFI] MODE: " + (String)(wm.getModeString(WiFi.getMode())));
Serial.println("[WIFI] SAVED: " + (String)(wm.getWiFiIsSaved() ? "YES" : "NO"));
Serial.println("[WIFI] SSID: " + (String)wm.getWiFiSSID());
Serial.println("[WIFI] PASS: " + (String)wm.getWiFiPass());
Expand Down

0 comments on commit 607dfdb

Please sign in to comment.