1.1.18.8.3 WDRV_WINC_MQTTBrokerSet
C
WDRV_WINC_STATUS WDRV_WINC_MQTTBrokerSet ( DRV_HANDLE handle, const char *pAddress, uint16_t port, WDRV_WINC_TLS_HANDLE tlsHandle )
Description
Configure the MQTT broker address and port as well as TLS handle.
Precondition
WDRV_WINC_Initialize
must have been called.
WDRV_WINC_Open
must have been called to obtain a valid handle.
##Parameters
Parameters | Description |
---|---|
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 broker configure was sent.
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.