Function esp_idf_svc::sys::esp_wifi_sta_wpa2_ent_set_username

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

@brief Set username for PEAP/TTLS method.

@deprecated This function is deprecated and will be removed in the future. Please use esp_eap_client_set_username instead.

@param username: point to address where stores the username; @param len: length of username, limited to 1~127

@return

  • ESP_OK: succeed
  • ESP_ERR_INVALID_ARG: fail(len <= 0 or len >= 128)
  • ESP_ERR_NO_MEM: fail(internal memory malloc fail)