tonyp7 / esp32-wifi-manager

Captive Portal for ESP32 that can connect to a saved wireless network or start an access point where you can connect to existing wifis.
MIT License
648 stars 214 forks source link

Configurable captive portal start #119

Closed RoelWKramer closed 2 years ago

RoelWKramer commented 3 years ago

I added an extra configuration item to set the default redirect of the captive portal. Idea is that with a custom http hook (see examples), you can easily change the welcome screen of the captive portal. The creator of that welcome screen should then add a link on that welcome page, which redirects to the wifi configuration location.

This is mainly something I needed myself, but I thought that others might benefit from it as well. My use case is to provide another form first, storing some details on the device. When that is ok, the link to configure wifi is shown.

Additionally I fixed some CSS/HTML stuff, because the linter in CLion highlighted it.