Thanks!
Code: Select all
inline void DelayedReboot()
{
Serial.printf("** REBOOT **");
Serial.flush();
delay(10000);
exit(0);
} // For catastrophic failure, wait 10 seconds then reboot
Code: Select all
inline void DelayedReboot()
{
Serial.printf("** REBOOT **");
Serial.flush();
delay(10000);
exit(0);
} // For catastrophic failure, wait 10 seconds then reboot
Code: Select all
puts("** REBOOT **");
vTaskDelay(10*1000/portTICK_PERIOD_MS);
esp_restart();
Users browsing this forum: No registered users and 148 guests