ESP8266WebServer, server.on callback does not work
Posted: Fri Nov 13, 2015 12:50 am
After changing from WiFiServer to ESP8266WebServer, I have a problem with the "ESP8266WebServer.on" callback.
The setup is:
The request is: "/engines/1000,1000"
That had worked before with
Unfortunately no longer with the ESP8266WebServer.on callback.
What I am doing wrong?
Regards, Rudolf
The setup is:
Code: Select all
server.on ( "/engines/", handleMotor );
The request is: "/engines/1000,1000"
That had worked before with
Code: Select all
WiFiServer server(80);
...
Javasript
request.open('GET', '/engines/' + Math.round(-left) + "," + Math.round(-right), true);
request.send(null);
Unfortunately no longer with the ESP8266WebServer.on callback.
What I am doing wrong?
Regards, Rudolf