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
1  
from memory, it's ESP.reset() – Jaromanda X Jul 22 '16 at 1:56
    
What about WDT? – Anuj Mattóõ Jul 22 '16 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 '16 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 '16 at 10:08
    
@JaromandaX could you please post your comment as an answer? I'd like to see this question have a proper answer so it will no longer be bumped by Community. – per1234 Dec 19 '16 at 23:08

Software reset in ESP8266 is achieved using ESP.reset()

as per WDT, the other answer has info on that, i.e. software WDT is cleared using yield() - hardware WDT is not accessible through software

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.