Function esp_idf_svc::sys::esp_eap_client_set_identity

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

@brief Set identity for PEAP/TTLS authentication method.

This function sets the identity to be used during PEAP/TTLS authentication.

@param[in] identity Pointer to the identity data. @param[in] len Length of the identity data (limited to 1~127 bytes).

@return

  • ESP_OK: The identity was set successfully.
  • ESP_ERR_INVALID_ARG: Invalid argument (len <= 0 or len >= 128).
  • ESP_ERR_NO_MEM: Memory allocation failure.