pub unsafe extern "C" fn esp_wifi_get_bandwidth(
    ifx: wifi_interface_t,
    bw: *mut wifi_bandwidth_t
) -> esp_err_t
Expand description

@brief Get the bandwidth of specified interface

@attention 1. API return false if try to get a interface that is not enable

@param ifx interface to be configured @param[out] bw store bandwidth 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