Function esp_idf_sys::esp_wifi_get_protocol

source ยท
pub unsafe extern "C" fn esp_wifi_get_protocol(
    ifx: wifi_interface_t,
    protocol_bitmap: *mut u8,
) -> esp_err_t
Expand description

@brief Get the current protocol bitmap of the specified interface

@param ifx interface @param[out] protocol_bitmap store current WiFi protocol bitmap of interface ifx

@return

  • ESP_OK: succeed
  • ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
  • ESP_ERR_WIFI_IF: invalid interface
  • ESP_ERR_INVALID_ARG: invalid argument
  • others: refer to error codes in esp_err.h