import esp32 main: if esp32.reset-reason == ESP-RST-WDT: print "rebooted due to watchdog"
ESP-RST-TASK-WDT