Wi-Fi Interface
Overview
This section outlines the development of the Wi-Fi-STA Interface component, which provides the features and functions to connect to Wi-Fi networks and manage the device's Wi-Fi settings.
This component is part of the Orchestrator firmware.
Development
Bootstrapping the Component
Creates a new component named
wi_fi_sta_interfaceinside thecomponentsdirectory.idf.py create-component wi_fi_sta_interface -C componentsRename and move the source file.
Rename the
wi_fi_sta_interface.ctowi_fi_sta_interface.cpp.Move it to src folder.
Update the
CMakeLists.txtfile.Change the location of the
wi_fi_sta_interface.cppfile to thesrcfolder.Add required dependencies
esp_event,esp_netif, andesp_wifito the REQUIRES section.
The
CMakeLists.txtfile should look like this:idf_component_register(SRCS "src/wi_fi_sta_interface.cpp" INCLUDE_DIRS "include" REQUIRES esp_event esp_netif esp_wifi)
Wi-Fi Station Management
References
Last modified: 08 March 2025