1.2.8.11 WDRV_WINC_IPUseDHCPSet Function

C

WDRV_WINC_STATUS WDRV_WINC_IPUseDHCPSet
(
DRV_HANDLE handle,
const WDRV_WINC_DHCP_ADDRESS_EVENT_HANDLER pfDHCPAddressEventCallback
)

Summary

Enables DHCP.

Description

Enables the use of DHCP by the WINC. This removes any static IP configuration. The use of DHCP isn't applied to the WINC until a connection is formed.

Precondition

WDRV_WINC_Initialize should have been called. WDRV_WINC_Open should have been called to obtain a valid handle. The WINC must not be connected.

Parameters

ParamDescription
handleClient handle obtained by a call to WDRV_WINC_Open.
pfDHCPAddressEventCallbackCallback for DHCP address events.

Returns

WDRV_WINC_STATUS_OK - The request has been accepted.

WDRV_WINC_STATUS_NOT_OPEN - The driver instance is not open.

WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.

WDRV_WINC_STATUS_REQUEST_ERROR - The request to the WINC was rejected.

Remarks

Only applicable when connected in infrastructure station mode.