[GH-ISSUE #1070] Password showing in Serial Monitor #910

Open
opened 2026-02-28 01:27:38 +03:00 by kerem · 7 comments
Owner

Originally created by @jg1xmv on GitHub (Jun 1, 2020).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1070

Hi,

Hopefully I am in the right place to ask this question as it is not really an issue but a question about configuration.

My Wifi password is shown in the Serial Monitor when connecting, is it possible to not show it or have it show ******* instead?

Thanks.

*WM: [1] AutoConnect
*WM: [2] Connecting as wifi client...
*WM: [3] STA static IP:
*WM: [2] setSTAConfig static ip not set, skipping
*WM: [1] Connecting to SAVED AP: SSID HERE
*WM: [3] Using Password: password
*WM: [3] WiFi station enable
*WM: [3] enableSTA PERSISTENT ON
*WM: [1] connectTimeout not set, ESP waitForConnectResult...
*WM: [2] Connection result: WL_CONNECTED
*WM: [3] lastconxresult: WL_CONNECTED
*WM: [1] AutoConnect: SUCCESS

Originally created by @jg1xmv on GitHub (Jun 1, 2020). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1070 Hi, Hopefully I am in the right place to ask this question as it is not really an issue but a question about configuration. My Wifi password is shown in the Serial Monitor when connecting, is it possible to not show it or have it show ******* instead? Thanks. *WM: [1] AutoConnect *WM: [2] Connecting as wifi client... *WM: [3] STA static IP: *WM: [2] setSTAConfig static ip not set, skipping *WM: [1] Connecting to SAVED AP: SSID HERE *WM: [3] Using Password: **password** *WM: [3] WiFi station enable *WM: [3] enableSTA PERSISTENT ON *WM: [1] connectTimeout not set, ESP waitForConnectResult... *WM: [2] Connection result: WL_CONNECTED *WM: [3] lastconxresult: WL_CONNECTED *WM: [1] AutoConnect: SUCCESS
Author
Owner

@tablatronix commented on GitHub (Jun 1, 2020):

It will not show up if you pick a lower debug level

<!-- gh-comment-id:636899328 --> @tablatronix commented on GitHub (Jun 1, 2020): It will not show up if you pick a lower debug level
Author
Owner

@jg1xmv commented on GitHub (Jun 2, 2020):

Thanks for the suggestion, my debug level is at "None" and it still shows-up.

<!-- gh-comment-id:637211402 --> @jg1xmv commented on GitHub (Jun 2, 2020): Thanks for the suggestion, my debug level is at "None" and it still shows-up.
Author
Owner

@tablatronix commented on GitHub (Jun 2, 2020):

How are you setting wm debug level?

<!-- gh-comment-id:637226381 --> @tablatronix commented on GitHub (Jun 2, 2020): How are you setting wm debug level?
Author
Owner

@jg1xmv commented on GitHub (Jun 2, 2020):

I left it as is by default, I did not change anything.

<!-- gh-comment-id:637244358 --> @jg1xmv commented on GitHub (Jun 2, 2020): I left it as is by default, I did not change anything.
Author
Owner

@jg1xmv commented on GitHub (Jun 2, 2020):

Ok, I understand what you mean now.
I set it using wifiManager.setDebugOutput(false);
The password does not show anymore.
I'll study the various debug levels a bit more.
Thanks for your help!

<!-- gh-comment-id:637246137 --> @jg1xmv commented on GitHub (Jun 2, 2020): Ok, I understand what you mean now. I set it using wifiManager.setDebugOutput(false); The password does not show anymore. I'll study the various debug levels a bit more. Thanks for your help!
Author
Owner

@tablatronix commented on GitHub (Jun 2, 2020):

it is hardcoded atm in the .h file you can change it using a compiler flag also. it is set to the highest level for alpha testing

WM_DEBUG_LEVEL

<!-- gh-comment-id:637247478 --> @tablatronix commented on GitHub (Jun 2, 2020): it is hardcoded atm in the .h file you can change it using a compiler flag also. it is set to the highest level for alpha testing WM_DEBUG_LEVEL
Author
Owner

@jg1xmv commented on GitHub (Jun 2, 2020):

Understood, thank you very much.

<!-- gh-comment-id:637247919 --> @jg1xmv commented on GitHub (Jun 2, 2020): Understood, thank you very much.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#910
No description provided.