You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
server.on("/", handlerFunction);
server.onNotFound(handlerFunction); // called when handler is not assigned
server.onFileUpload(handlerFunction); // handle file uploads
I was wondering if it should be updated to the following:
uri -- the corresponding webpage
THandlerFunction -- the function to call
Example:
server.on("/", handlerFunction);
server.onNotFound(handlerFunction); // called when handler is not assigned
server.onFileUpload(handlerFunction); // handle file uploads
This way someone can just look at the documentation to know all of the parameters and their meaning without having to open up the header file (which I don't think can be done in Arduino's IDE).
I can make the changes and submit a PR if you think this is a good idea.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So I noticed that
libraries/ESP8266WebServer/README.rst
has the following:I was wondering if it should be updated to the following:
This way someone can just look at the documentation to know all of the parameters and their meaning without having to open up the header file (which I don't think can be done in Arduino's IDE).
I can make the changes and submit a PR if you think this is a good idea.
Beta Was this translation helpful? Give feedback.
All reactions