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