[−][src]Function esp_idf_bindgen::esp_wifi_set_protocol
pub unsafe extern "C" fn esp_wifi_set_protocol(
ifx: wifi_interface_t,
protocol_bitmap: u8
) -> esp_err_t
@brief Set protocol type of specified interface The default protocol is (WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N)
@attention Currently we only support 802.11b or 802.11bg or 802.11bgn mode
@param ifx interfaces @param protocol_bitmap WiFi protocol bitmap
@return
- ESP_OK: succeed
- ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
- ESP_ERR_WIFI_IF: invalid interface
- others: refer to error codes in esp_err.h