Function esp_idf_sys::esp_netif_set_hostname
source ยท pub unsafe extern "C" fn esp_netif_set_hostname(
esp_netif: *mut esp_netif_t,
hostname: *const c_char,
) -> esp_err_t
Expand description
@brief Set the hostname of an interface
The configured hostname overrides the default configuration value CONFIG_LWIP_LOCAL_HOSTNAME. Please note that when the hostname is altered after interface started/connected the changes would only be reflected once the interface restarts/reconnects
@param[in] esp_netif Handle to esp-netif instance @param[in] hostname New hostname for the interface. Maximum length 32 bytes.
@return - ESP_OK - success - ESP_ERR_ESP_NETIF_IF_NOT_READY - interface status error - ESP_ERR_ESP_NETIF_INVALID_PARAMS - parameter error