1.1.11.10 WDRV_WINC_MQTT_SUBSCRIBE_CALLBACK
Function
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 )
Summary
Subscribe callback.
Description
Callback is called when a subscribe request changes state or new data is received.
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.
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