AWS IoT Device SDK C:
MQTT
MQTT 3.1.1 client library
|
Return to main page ↑ |
MQTT callback function and context. More...
#include <iot_mqtt_types.h>
Data Fields | |
void * | pCallbackContext |
The first parameter to pass to the callback function to provide context. | |
void(* | function )(void *pCallbackContext, IotMqttCallbackParam_t *pCallbackParam) |
User-provided callback function signature. More... | |
MQTT callback function and context.
Parameter for: IotMqtt_SubscribeAsync, IotMqtt_UnsubscribeAsync, and IotMqtt_PublishAsync. Cannot be used with IOT_MQTT_FLAG_WAITABLE.
Specifies a function to be invoked with optional context when an operation completes or when a server-to-client PUBLISH is received.
All instances of IotMqttCallbackInfo_t should be initialized with IOT_MQTT_CALLBACK_INFO_INITIALIZER.
Below is an example for receiving an asynchronous notification on operation completion. See IotMqtt_SubscribeAsync for an example of using this struct with for incoming PUBLISH messages.
void( * IotMqttCallbackInfo_t::function) (void *pCallbackContext, IotMqttCallbackParam_t *pCallbackParam) |
User-provided callback function signature.
[in] | pCallbackContext | IotMqttCallbackInfo_t.pCallbackContext. |
[in] | pCallbackParam | Details on the outcome of the MQTT operation or an incoming MQTT PUBLISH. |