I'm trying to disable the web interface of the ESP autoconnect library, as i use it only for setting up a WiFi connection and settings for my project. Beyond the initial setup i only need the web interface to be accessible if a condition in my program is met.
So far i've been able to deny access to the web interface by putting my
portal.handleClient(); call into an if statement, but the web server itself remains visible over the network.
Is there any function that can disable the web server completely during setup without interfering with the network connection and saved variables and parameters set by autoconnect?