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

ParametersDescription
handleClient handle obtained by a call to WDRV_WINC_Open.
userCtxUser context passed to the callback.
pMsgInfoPointer to message information.
pTopicNamePointer to topic name.
pTopicDataPointer to topic data.
topicDataLenLength of topic data.
statusStatus of subscription.

Returns

None.

Remarks

None.