Skip to main content

esp_wifi_get_home_channel

Function esp_wifi_get_home_channel 

Source
pub unsafe extern "C" fn esp_wifi_get_home_channel(
    primary: *mut u8,
    second: *mut wifi_second_chan_t,
) -> esp_err_t
Expand description

@brief Get the home channel of device

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

@return

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