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