Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on ESP8266 in Arduino IDE. I want to know how to Software RESET the ESP8266. Any sketch/example would be useful. Moreover, how to initialise WDT in ESP8266.

Kindly help!

share|improve this question
    
from memory, it's ESP.reset() – Jaromanda X Jul 22 at 1:56
    
What about WDT? – Anuj Mattóõ Jul 22 at 9:20
    
IIRC the WDT is always enabled on the ESP8266. A simple while(1); would make it reset. Or use the official ESP.reset(); function. – Majenko Jul 22 at 9:46
1  
What about WDT? If you want a stupid way of triggering the WDT, then do so, but the end result is the same, but .reset is immediate – Jaromanda X Jul 22 at 10:08

Actually ESP8266 has two WDTs, software and hardware. Hardware WDT we can't control from arduino programming. To clear software WDT you can use yield function.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.