1.1.11.7 WDRV_WINC_MQTTConnect
Function
WDRV_WINC_STATUS WDRV_WINC_MQTTConnect ( DRV_HANDLE handle, bool cleanSession, uint16_t keepAliveTime, WDRV_WINC_MQTT_PROTO_VER protocolVer, WDRV_WINC_MQTT_CONN_STATUS_CALLBACK pfConnCb, uintptr_t connCbCtx )
Summary
Connect to an MQTT broker.
Description
Starts a connection to an MQTT broker.
Precondition
WDRV_WINC_Initialize should have been called. WDRV_WINC_Open should have been called to obtain a valid handle.
Parameters
handle - Client handle obtained by a call to WDRV_WINC_Open.
cleanSession - Flag indicating if a clean session should be used.
keepAliveTime - Keep alive time (in seconds).
protocolVer - Protocol version.
pfConnCb - Pointer to connection status callback.
connCbCtx - User context to pass to callback when called.
Returns
WDRV_WINC_STATUS_OK - A scan was initiated.
WDRV_WINC_STATUS_NOT_OPEN - The driver instance is not open.
WDRV_WINC_STATUS_REQUEST_ERROR - The request to the WINC was rejected.
WDRV_WINC_STATUS_INVALID_ARG - The parameters were incorrect.
Remarks
None.