1.1.18.14 WDRV_WINC_MQTT_SUBSCRIBE_CALLBACK Typedef
C
void (*WDRV_WINC_MQTT_SUBSCRIBE_CALLBACK)
(
DRV_HANDLE handle,
uintptr_t userCtx,
const WDRV_WINC_MQTT_MSG_INFO *pMsgInfo,
const char *pTopicName,
const uint8_t *pTopicData,
size_t topicDataLen,
WDRV_WINC_MQTT_SUB_STATUS_TYPE status
);Description
Callback is called when a subscribe request changes state or new data is received.
Parameters
| Parameters | Description |
|---|---|
| handle | Client handle obtained by a call to WDRV_WINC_Open. |
| userCtx | User context passed to the callback. |
| pMsgInfo | Pointer to message information. |
| pTopicName | Pointer to topic name. |
| pTopicData | Pointer to topic data. |
| topicDataLen | Length of topic data. |
| status | Status of subscription. |
Returns
None.
Remarks
None.
