esp_wifi_get_mode() function
Get current operating mode of WiFi
Arguments
mode
store current WiFi mode
Return value
- ESP_OK: succeed - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init - ESP_ERR_INVALID_ARG: invalid argument
Examples
esp_wifi_get_mode() is referenced by 4 libraries and example projects: