#include #include "esp_system.h" #include "esp_log.h" #include #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include #include #include "api/start.h" static const char *TAG = "esp32-template"; void customAPIHandler(httpd_handle_t server) { httpd_register_uri_handler(server, &api_start); } void app_main(void) { setCustomAPIHandler(customAPIHandler); initJannex(); updateJannex(); while (true) { vTaskDelay(1000 / portTICK_PERIOD_MS); } }