Function esp_idf_svc::hal::sys::esp_eap_client_set_username

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

@brief Set username for PEAP/TTLS authentication method.

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

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

@return

  • ESP_OK: The username was set successfully.
  • ESP_ERR_INVALID_ARG: Failed due to an invalid argument (len <= 0 or len >= 128).
  • ESP_ERR_NO_MEM: Failed due to memory allocation failure.