esp32 restart from code code example Example: esp32 restart from code ESP.restart(); // to restart ESP32 from within sketch