mirror of
https://github.com/luc-github/ESP3D.git
synced 2025-10-31 11:56:48 -07:00
Move page Handle definition to class constructor
to avoid to setup handle function for web requests in main setup - define handles function in class creator
This commit is contained in:
@@ -75,10 +75,6 @@ void setup() {
|
||||
//setup wifi according settings
|
||||
wifi_config.Setup();
|
||||
delay(1000);
|
||||
//define interfaces
|
||||
//TODO move this to class
|
||||
web_interface.WebServer.on("/", [](){web_interface.WebServer.send(200, "text/plain", "this works as well - port 80");});
|
||||
data_interface.WebServer.on("/", [](){data_interface.WebServer.send(200, "text/plain", "this works as well - port 8888");});
|
||||
//start interfaces
|
||||
web_interface.WebServer.begin();
|
||||
data_interface.WebServer.begin();
|
||||
|
||||
Reference in New Issue
Block a user