pub unsafe extern "C" fn esp_eap_client_set_identity(
    identity: *const c_uchar,
    len: c_int
) -> esp_err_t
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.