1.1.22.4 WDRV_WINC_ProvServiceStart

C

WDRV_WINC_STATUS WDRV_WINC_ProvServiceStart
(
    DRV_HANDLE handle,
    WDRV_WINC_PROV_PROTOCOL_TYPE type,
    uint16_t port,
    WDRV_WINC_IP_ADDRESS_TYPE ipType,
    WDRV_WINC_PROV_ATTACH_CALLBACK pfProvAttachCB
)

Description

Starts a provisioning service on the specified port and protocol.

Precondition

WDRV_WINC_Initialize must have been called.

WDRV_WINC_Open must have been called to obtain a valid handle.

Parameters

ParametersDescription
handleClient handle obtained by a call to WDRV_WINC_Open.
typeInterface protocol type.
portNetwork port for service.
ipTypeIP protocol type.
pfProvAttachCBPointer to callback to receive 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.

  • WDRV_WINC_STATUS_BUSY - The service is already running.

Remarks

None.