Function esp_idf_hal::sys::esp_wifi_sta_wpa2_ent_set_identity

source ยท
pub unsafe extern "C" fn esp_wifi_sta_wpa2_ent_set_identity(
    identity: *const u8,
    len: i32,
) -> i32
Expand description

@brief Set identity for PEAP/TTLS method.

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

@attention The API only passes the parameter identity to the global pointer variable in wpa2 enterprise module.

@param identity: point to address where stores the identity; @param len: length of identity, limited to 1~127

@return

  • ESP_OK: succeed
  • ESP_ERR_INVALID_ARG: fail(len <= 0 or len >= 128)
  • ESP_ERR_NO_MEM: fail(internal memory malloc fail)