esp_wifi_sta_enterprise_enable() function
Enable EAP authentication(WiFi Enterprise) for the station mode. This function enables Extensible Authentication Protocol (EAP) authentication for the Wi-Fi station mode. When EAP authentication is enabled, the ESP device will attempt to authenticate with the configured EAP credentials when connecting to a secure Wi-Fi network.
Syntax
esp_err_t esp_wifi_sta_enterprise_enable(void); Return value
- ESP_OK: EAP authentication enabled successfully. - ESP_ERR_NO_MEM: Failed to enable EAP authentication due to memory allocation failure.
Notes
Before calling this function, ensure that the Wi-Fi configuration and EAP credentials (such as username and password) have been properly set using the appropriate configuration APIs.
esp_wifi_sta_enterprise_enable() is called by 1 function and calls 5 functions:
![]()
esp_wifi_sta_enterprise_enable()
esp_wifi_sta_enterprise_enable() reads 3 variables and writes 3 variables:
![]()
esp_wifi_sta_enterprise_enable()