[GH-ISSUE #1799] How to display the whole connection process ? #1515

Open
opened 2026-02-28 01:30:22 +03:00 by kerem · 1 comment
Owner

Originally created by @davidmarli on GitHub (Feb 6, 2025).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1799

Hi, just a simple question.
When I monitor my esp32 on my PC, those lines show up :
*wm:4 networks found
[126894][E][WebServer.cpp:638] _handleRequest(): request handler not found
*wm:Connecting to NEW AP: Routeur24
*wm:Connect to new AP [SUCCESS]
*wm:Got IP Address:
*wm:192.168.1.168
*wm:config portal exiting

Is there a way to have those lines directly in my code, in order to print them on my esp32 display ?

Thank you for your help

Originally created by @davidmarli on GitHub (Feb 6, 2025). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1799 Hi, just a simple question. When I monitor my esp32 on my PC, those lines show up : *wm:4 networks found [126894][E][WebServer.cpp:638] _handleRequest(): request handler not found *wm:Connecting to NEW AP: Routeur24 *wm:Connect to new AP [SUCCESS] *wm:Got IP Address: *wm:192.168.1.168 *wm:config portal exiting Is there a way to have those lines directly in my code, in order to print them on my esp32 display ? Thank you for your help
Author
Owner

@timr49 commented on GitHub (Apr 17, 2025):

@davidmarli, I haven't tried it but looking at the WiFiManager code, the constructor takes an optional parameter of type Print&.

// constructors
WiFiManager::WiFiManager(Print& consolePort):_debugPort(consolePort){
  WiFiManagerInit();
}

WiFiManager::WiFiManager() {
  WiFiManagerInit();  
}

So, you if you have a class that is a subclass of class Print and its write() method writes to your display, pass an instance of it to the WiFiManager() constructor and that should do what you want. If you want the debug output on your display as well as on Serial, the write() method should write to both.

If that is all new to you, please advise which display you are using and most importantly, which API you are using to write to the display: then I should be able to be more specific.

<!-- gh-comment-id:2811518437 --> @timr49 commented on GitHub (Apr 17, 2025): @davidmarli, I haven't tried it but looking at the WiFiManager code, the constructor takes an optional parameter of type Print&. ``` // constructors WiFiManager::WiFiManager(Print& consolePort):_debugPort(consolePort){ WiFiManagerInit(); } WiFiManager::WiFiManager() { WiFiManagerInit(); } ``` So, you if you have a class that is a subclass of class Print and its write() method writes to your display, pass an instance of it to the WiFiManager() constructor and that should do what you want. If you want the debug output on your display as well as on Serial, the write() method should write to both. If that is all new to you, please advise which display you are using and most importantly, which API you are using to write to the display: then I should be able to be more specific.
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#1515
No description provided.