#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_err.h"

void stillAlive(void* args) {
    while (true) {
        ESP_LOGI("still alive", "I'm not dead yet!!");
        vTaskDelay(10 * portTICK_PERIOD_MS);
    }
}

void app_main() {
    ESP_LOGI("app_main", "Hello World!!");
    TaskHandle_t xHandle;
    xTaskCreate(stillAlive, "stillAlive", 20000, NULL, tskIDLE_PRIORITY, &xHandle);
    vTaskDelay(10000 * portTICK_PERIOD_MS);
}