Page 1 of 1

Webserver, server.onNotFound(handleNotFound);

Posted: Sat Sep 08, 2018 5:40 pm
by mikemoy
I am a bit confused on the use of server.onNotFound(handleNotFound);

ok, so it calls the function handleNotFound, but how to i see what the request was ?

Re: Webserver, server.onNotFound(handleNotFound);

Posted: Sat Sep 08, 2018 8:10 pm
by bobtidey
The handleBotFound routine can access what it needs from the server object

server.uri() will tell you the request, server.arg("argname") can retrieve any arguments included.

Re: Webserver, server.onNotFound(handleNotFound);

Posted: Sat Sep 08, 2018 9:03 pm
by mikemoy
Thank you!