esp_iot_framework  v0.2.1
© 2026 AmakeSasha, distributed under a license Apache-2.0
Server Boot

Server startup and runtime environment initialization. More...

Functions

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

Detailed Description

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

Function Documentation

◆ eif_server_initialize()

esp_err_t eif_server_initialize ( void  )

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

Note
This function should be called immediately after eif_core_initialize().
Returns
  • ESP_OK: Server 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_server.h>
void app_main(void) {
ESP_ERROR_CHECK(eif_core_initialize());
ESP_ERROR_CHECK(eif_server_initialize());
// Further code...
}
esp_err_t eif_core_initialize(void)
Initializes the CORE of the framework.
esp_err_t eif_server_initialize(void)
Configures system-wide services and prepares the server networking environment.