Function esp_idf_svc::sys::esp_wifi_internal_get_negotiated_channel

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

@brief Get the negotiated channel info after WiFi connection established

@param ifx : WiFi interface @param aid : the connection number when a STA connects to the softAP @param primary : store the negotiated primary channel @param second : store the negotiated second channel @attention the aid param is only works when the device in softAP/softAP+STA mode

@return

  • ESP_OK: succeed