I want my ESP to broadcast a wifi when it fails to connect to the access point, but also have the web server where I can interact with the device.
Currently I have:
I guess that’s because the captive_portal is activated when WiFi mode does not work (immediately).
By removing that, your device keeps on trying to connect to the configured AP.