0

I would like to know if there's any method to get how the ESP32 was restarted (by software, restart button, plugged on...).

When it's restarted I can see in the Serial port message like

rst:0xc (SW_CPU_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee

rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee

Is there any way to get this information once the board is started?

  • 1
    did you check the examples? there is one called ResetReason – Juraj Mar 8 at 12:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.