[−][src]Function esp_idf_bindgen::esp_wifi_set_mode
pub unsafe extern "C" fn esp_wifi_set_mode(mode: wifi_mode_t) -> esp_err_t
@brief Set the WiFi operating mode
Set the WiFi operating mode as station, soft-AP or station+soft-AP, The default mode is soft-AP mode.
@param mode WiFi operating mode
@return
- ESP_OK: succeed
- ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
- ESP_ERR_INVALID_ARG: invalid argument
- others: refer to error code in esp_err.h