|
esp_iot_framework
v0.1.0-alpha
© 2026 AmakeSasha, distributed under a license Apache-2.0
|
Base initialization and framework-wide settings. More...
Functions | |
| esp_err_t | eif_core_initialize (void) |
Initializes the CORE of the framework. More... | |
| esp_err_t | eif_nvs_initialize (void) |
| Initialize Non-Volatile Storage (NVS) and framework data. More... | |
This module contains functions that must be called at the very beginning of the application to prepare internal data structures and system tasks.
| esp_err_t eif_core_initialize | ( | void | ) |
Sets up the internal configuration, prepares the web server settings, and launches essential system services.
eif_* functions (like URI registration or Wi-Fi connectivity). This function is mandatory for the framework to work.eif_* API with default values.ESP_OK: CORE initialization was successful.ESP_ERR_NO_MEM: This error cannot be returned, because the system automatically restarts due to the lack of a heap, even when the memory scanner is running.Example of use:
| esp_err_t eif_nvs_initialize | ( | void | ) |
This function performs the following essential steps:
eif_core_initialize() but before eif_wifi_initialize(). This function is mandatory for the framework to work. If you use eif_set_wifi_profiles_count(), it must be called before calling eif_nvs_initialize(). Otherwise, the default number of profiles **(2)** will be loaded into NVS.ESP_OK: NVS and all framework fields initialized successfully.ESP_ERR_*: Various NVS-related errors if hardware initialization fails. Look at the logs to understand the cause of the errors.Example of use: