Skip to content

Commit 21a3eea

Browse files
committed
Set WifiManager debug level.
This allows for setting the WiFimanager debug level for more or less verbosity using the WM_DEBUG_LEVEL macro. Valid values are: DEBUG_ERROR = 0, DEBUG_NOTIFY = 1, // default DEBUG_VERBOSE = 2, DEBUG_DEV = 3, DEBUG_MAX = 4
1 parent 2ae8f0c commit 21a3eea

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

main/User_config.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ const byte mac[] = {0xDE, 0xED, 0xBA, 0xFE, 0x54, 0x95}; //W5100 ethernet shield
102102
#ifndef WifiManager_TimeOut
103103
# define WifiManager_TimeOut 5
104104
#endif
105+
#ifndef WM_DEBUG_LEVEL
106+
# define WM_DEBUG_LEVEL 1 // valid values are: DEBUG_ERROR = 0, DEBUG_NOTIFY = 1, DEBUG_VERBOSE = 2, DEBUG_DEV = 3, DEBUG_MAX = 4
107+
#endif
105108

106109
/*-------------DEFINE YOUR ADVANCED NETWORK PARAMETERS BELOW----------------*/
107110
//#define MDNS_SD //uncomment if you want to use mdns for discovering automatically your ip server, please note that MDNS with ESP32 can cause the BLE to not work

main/main.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,8 @@ void setup_wifimanager(bool reset_settings) {
10821082
}
10831083
}
10841084

1085+
wifiManager.setDebugOutput(WM_DEBUG_LEVEL);
1086+
10851087
// The extra parameters to be configured (can be either global or just in the setup)
10861088
// After connecting, parameter.getValue() will get you the configured value
10871089
// id/name placeholder/prompt default length

0 commit comments

Comments
 (0)