ESP8266 server listening on all pages

时间:2018-02-26 18:01:13

标签: esp8266 arduino-ide nodemcu

I have simple server running on my nodeMCU and I would like to redirect all user request to one function. So that any page that will user type it will always go to the specific function.

Is there some wildcard or something?

I have tried something like this but it is not working:

server.on("/*",function);
server.on("*",function);

0 个答案:

没有答案