Function esp_idf_svc::sys::esp_netif_get_hostname

source ยท
pub unsafe extern "C" fn esp_netif_get_hostname(
    esp_netif: *mut esp_netif_obj,
    hostname: *mut *const i8,
) -> i32
Expand description

@brief Get interface hostname.

@param[in] esp_netif Handle to esp-netif instance @param[out] hostname Returns a pointer to the hostname. May be NULL if no hostname is set. If set non-NULL, pointer remains valid (and string may change if the hostname changes).

@return - ESP_OK - success - ESP_ERR_ESP_NETIF_IF_NOT_READY - interface status error - ESP_ERR_ESP_NETIF_INVALID_PARAMS - parameter error