esp_iot_framework  v0.1.0-alpha
© 2026 AmakeSasha, distributed under a license Apache-2.0
Device Boot

Device startup and runtime environment initialization. More...

Functions

esp_err_t eif_device_initialize (void)
 Configures system-wide services and prepares the device networking environment. More...
 

Detailed Description

This module initializes the device hardware and prepares the runtime environment for the application layer.

Function Documentation

◆ eif_device_initialize()

esp_err_t eif_device_initialize ( void  )

Sets up the base runtime environment, applies initial device configurations, and binds essential system handlers required to start the device.

Note
This function should be called immediately after eif_core_initialize().
Returns
  • ESP_OK: Device layer initialization was successful.
  • ESP_ERR_INVALID_ARG: Internal error. One of the mandatory arguments is passed as a NULL pointer.

Example of use:

#include <esp_err.h>
#include <esp_iot_framework_core.h>
#include <esp_iot_framework_device.h>
void app_main(void) {
ESP_ERROR_CHECK(eif_core_initialize());
ESP_ERROR_CHECK(eif_device_initialize());
// Further code...
}
esp_err_t eif_core_initialize(void)
Initializes the CORE of the framework.
esp_err_t eif_device_initialize(void)
Configures system-wide services and prepares the device networking environment.