-->
Page 1 of 1

How to force a reset in software (Arduino)

PostPosted: Sat Feb 09, 2019 8:20 pm
by RobLewis
My app developed with the Arduino IDE works fine, but I'd like to be able to force a reset of the chip in code, to restart the application. I thought the watchdog timer(s) could do this but I can't find any documented way to use them.

How can my program force a reset of the ESP8266?

Re: How to force a reset in software (Arduino)

PostPosted: Sun Feb 10, 2019 7:25 am
by btidey

Re: How to force a reset in software (Arduino)

PostPosted: Wed Feb 13, 2019 12:55 pm
by FRANCISCOGIMENO1000
Hi, I do it like that:

void reset()
{
wdt_enable(WDTO_15MS);
while (1) {}
}