esp_eap_client_set_username() function
Set username for PEAP/TTLS authentication method. This function sets the username to be used during PEAP/TTLS authentication.
Arguments
username
Pointer to the username data.
len
Length of the username data (limited to 1~127 bytes).
Return value
- ESP_OK: The username was set successfully. - ESP_ERR_INVALID_ARG: Failed due to an invalid argument (len = 128). - ESP_ERR_NO_MEM: Failed due to memory allocation failure.
esp_eap_client_set_username() is called by 1 function and calls 2 functions:
![]()
esp_eap_client_set_username()
esp_eap_client_set_username() reads 1 variable and writes 2 variables:
![]()
esp_eap_client_set_username()