Function esp_idf_hal::sys::esp_wifi_get_channel

source ยท
pub unsafe extern "C" fn esp_wifi_get_channel(
    primary: *mut u8,
    second: *mut u32,
) -> i32
Expand description

@brief Get the primary/secondary channel of device

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

@param primary store current primary channel @param[out] second store current second channel

@return

  • ESP_OK: succeed
  • ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
  • ESP_ERR_INVALID_ARG: invalid argument