Closed SkHCrusher closed 1 year ago
you can use the WM server its shared, for some reason you cannot stop and reopen a port in esp, some unknown bug.
You could override all other routes if you want them to not be available.. you can also probably remove everything form the menu, and leave the routes.
but you should be able to bind to the existing ones and override them, I think i tested this in the SUPER example
I don't find this in your example. But found another solution:
WebServer server(8080);
....
server.on("/alarm-start", activateAlarm);
server.on("/alarm-stop", deactivateAlarm);
server.begin();
I open the webserver on another port and this works for me :-) Thank you.
Basic Infos
Challenge: After the Wifi setup, make only two own routes available without the config portal via web server
Hardware
WiFimanager 2.0.15
Esp8266/Esp32:
Hardware: ESP-32 (Wemos Lolin32 lite)
Description
I would like to use the WifiManager to configure the wifi for my alarm device via interface. After that I want to make only two routes available:
But I can't get my own web server to run, because the manager already uses it. I can start the webserver of the Wifi-Manager with startWebPortal(), but then the configuration menu is accessible again.
So how do I get only my two routes accessible after the successful Wifi setup.
Thanks for your help
Settings in IDE
Module: WEMOS LOLIN32 Lite
Sketch