#include "esp_log.h"
#include "nvs_flash.h"
#include "alarm_service.h"
#include "app_state.h"
#include "display_ui.h"
#include "time_service.h"
#include "web_portal.h"
Go to the source code of this file.
|
| static const char * | TAG = "main" |
| |
◆ app_main()
Definition at line 12 of file main.c.
13{
14 esp_err_t ret = nvs_flash_init();
15 if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
16 ESP_ERROR_CHECK(nvs_flash_erase());
17 ret = nvs_flash_init();
18 }
19 ESP_ERROR_CHECK(ret);
20
23
25 if (ret != ESP_OK) {
26 ESP_LOGW(
TAG,
"Display startup failed: %s", esp_err_to_name(ret));
27 }
28
31}
esp_err_t alarm_service_start(void)
Start the alarm service task.
esp_err_t app_state_init(void)
Initialize state, defaults, and NVS-backed values.
esp_err_t display_ui_start(void)
Initialize display backend and start the UI task.
esp_err_t time_service_init(void)
Initialize time service state and restore persisted time fallback.
esp_err_t web_portal_start(void)
Start Wi-Fi mode handling and HTTP portal service.
◆ TAG