esp_idf_svc::hal::sys

Function esp_netif_ppp_set_auth

Source
pub unsafe extern "C" fn esp_netif_ppp_set_auth(
    netif: *mut esp_netif_obj,
    authtype: u32,
    user: *const u8,
    passwd: *const u8,
) -> i32
Expand description

@brief Sets the auth parameters for the supplied esp-netif.

@param[in] esp_netif Handle to esp-netif instance @param[in] authtype Authorisation type @param[in] user User name @param[in] passwd Password

@return ESP_OK on success, ESP_ERR_ESP_NETIF_INVALID_PARAMS if the supplied netif is not of PPP type, or netif is null