How to display the whole connection process ?
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
@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.