Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By andrew melvin
#12960 From using NodeMCU I know it is possible to give a command to software restart the module.

Is there a command for the arduino IDE...

By the way guys, thank you so much for this. I'm creating all sorts of stuff, that node would just not let me do! Thanks for all the hard work!

A
User avatar
By igrr
#12963 You can call C function abort(); which will cause a WDT reset in about a second.
There's also a function in the SDK, system_restart.
You can call it like this:
Code: Select allextern "C" {
#include "user_interface.h"
}

// somewhere later in the code...
system_restart();
User avatar
By uhrheber
#13165 Speaking of watchdog timer, it seems that it is reset automatically from the SDK code running in the background.
Can I disable this and reset the WDT manually from the user code (in loop()), so the module will restart when the user code hangs?