WiFiManager show STA ip after connection
Posted: Thu Mar 10, 2022 2:03 pm
Hi!
I intend to show the IP assigned to the ESP by the router on the https://github.com/tzapu/WiFiManager config portal after a successful connection.
The first idea that comes to my mind: open a STA connection without closing the AP, retrieve WiFi.localIP(), send it to the WiFiManager server and show it on the screen. I don't know if it's possible neither if it's the best approach.
Can anyone, please, give me some advice or any hint on what to try?
I intend to show the IP assigned to the ESP by the router on the https://github.com/tzapu/WiFiManager config portal after a successful connection.
The first idea that comes to my mind: open a STA connection without closing the AP, retrieve WiFi.localIP(), send it to the WiFiManager server and show it on the screen. I don't know if it's possible neither if it's the best approach.
Can anyone, please, give me some advice or any hint on what to try?