Post topics, source code that relate to the Arduino Platform
User avatar
By Mr Freeze
#78278 In main loop you can meet its incorrect.
But you can do function esp_reset and ask it from main loop. For me its working.
void loop()
{
esp_reset(0;
}
//-----------------
void esp_reset()
{
ESP.reset();
}
User avatar
By schufti
#78326 AFAIK ESP.reset() restarts exactly the same way it did at last power-up (does not evaluate gpio0,2,15 anew).
So if the last power-up was into flash mode, ESP.reset() will end up in flash mode ...