Function esp_idf_hal::sys::esp_wifi_set_mode

source ยท
pub unsafe extern "C" fn esp_wifi_set_mode(mode: u32) -> i32
Expand description

@brief Set the WiFi operating mode

       Set the WiFi operating mode as station, soft-AP, station+soft-AP or NAN.
       The default mode is station 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