Function esp_idf_svc::sys::esp_eap_client_set_password

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

@brief Set password for PEAP/TTLS authentication method.

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

@param[in] password Pointer to the password data. @param[in] len Length of the password data (len > 0).

@return

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