[][src]Function esp_idf_bindgen::esp_wifi_set_config

pub unsafe extern "C" fn esp_wifi_set_config(
    interface: wifi_interface_t,
    conf: *mut wifi_config_t
) -> esp_err_t

@brief Set the configuration of the ESP32 STA or AP

@attention 1. This API can be called only when specified interface is enabled, otherwise, API fail @attention 2. For station configuration, bssid_set needs to be 0; and it needs to be 1 only when users need to check the MAC address of the AP. @attention 3. ESP32 is limited to only one channel, so when in the soft-AP+station mode, the soft-AP will adjust its channel automatically to be the same as the channel of the ESP32 station.

@param interface interface @param conf station or soft-AP configuration

@return