10static const char *
TAG =
"main";
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();
26 ESP_LOGW(
TAG,
"Display startup failed: %s", esp_err_to_name(ret));
esp_err_t alarm_service_start(void)
Start the alarm service task.
Alarm scheduling service API.
esp_err_t app_state_init(void)
Initialize state, defaults, and NVS-backed values.
Thread-safe application state and persisted configuration APIs.
esp_err_t display_ui_start(void)
Initialize display backend and start the UI task.
OLED display UI service API.
esp_err_t time_service_init(void)
Initialize time service state and restore persisted time fallback.
Time service APIs for local time access and synchronization triggers.
esp_err_t web_portal_start(void)
Start Wi-Fi mode handling and HTTP portal service.
Wi-Fi provisioning/runtime portal service API.