Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // create a function
- void controlreset() {
- ESP.restart();
- }
- // add this to the setup before httpserver.begin;
- httpServer.on("/reset", controlreset); // so when u goto http://IP/reset the esp will run the function and it will reset the esp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement