Function esp_idf_sys::esp_wifi_sta_wpa2_ent_set_pac_file

source ยท
pub unsafe extern "C" fn esp_wifi_sta_wpa2_ent_set_pac_file(
    pac_file: *const c_uchar,
    pac_file_len: c_int,
) -> esp_err_t
Expand description

@brief Set client pac file

@deprecated This function is deprecated and will be removed in the future. Please use esp_eap_client_set_pac_file instead.

@attention 1. For files read from the file system, length has to be decremented by 1 byte. @attention 2. Disabling the ESP_WIFI_MBEDTLS_TLS_CLIENT config is required to use EAP-FAST.

@param pac_file: pointer to the pac file pac_file_len: length of the pac file

@return

  • ESP_OK: succeed
  • ESP_ERR_NO_MEM: fail(internal memory malloc fail)