Function esp_idf_svc::sys::esp_netif_dhcpc_start

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

@brief Start DHCP client (only if enabled in interface object)

@note The default event handlers for the SYSTEM_EVENT_STA_CONNECTED and SYSTEM_EVENT_ETH_CONNECTED events call this function.

@param[in] esp_netif Handle to esp-netif instance

@return - ESP_OK - ESP_ERR_ESP_NETIF_INVALID_PARAMS - ESP_ERR_ESP_NETIF_DHCP_ALREADY_STARTED - ESP_ERR_ESP_NETIF_DHCPC_START_FAILED