1.1.11.9 WDRV_WINC_MQTTBrokerSet

Function

WDRV_WINC_STATUS WDRV_WINC_MQTTBrokerSet
(
DRV_HANDLE handle,
const char *pAddress,
uint16_t port,
WDRV_WINC_TLS_HANDLE tlsHandle
)

Summary

Configure an MQTT broker.

Description

Configure the MQTT broker address and port as well as TLS handle.

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.

pAddress - Pointer to broker domain name or IP address.

port - TCP port broker is listening on.

tlsHandle - TLS handle if required.

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.