mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-07 11:48:48 +00:00
FreeRTOS
This commit is contained in:
@@ -115,3 +115,11 @@ void task2(void *pvParameters) {
|
||||
}
|
||||
}
|
||||
|
||||
void task_restart(void *pvParameters) {
|
||||
while (1) {
|
||||
vTaskDelay(10000); // Delay for 10 seconds
|
||||
printf("Restarting system...\n");
|
||||
esp_restart();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user