Advertisement
Guest User

Untitled

a guest
Dec 14th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. // create a function
  2. void controlreset() {
  3.   ESP.restart();
  4. }
  5.  
  6. // add this to the setup before httpserver.begin;
  7. 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