AWS IoT Embedded C Device SDK
Data Fields
MQTTClient_t Struct Reference

MQTT Client Type Definition. More...

#include <aws_iot_mqtt_interface.h>

Data Fields

pConnectFunc_t connect
 function implementing the iot_mqtt_connect function
 
pPublishFunc_t publish
 function implementing the iot_mqtt_publish function
 
pSubscribeFunc_t subscribe
 function implementing the iot_mqtt_subscribe function
 
pUnsubscribeFunc_t unsubscribe
 function implementing the iot_mqtt_unsubscribe function
 
pDisconnectFunc_t disconnect
 function implementing the iot_mqtt_disconnect function
 
pYieldFunc_t yield
 function implementing the iot_mqtt_yield function
 
pIsConnectedFunc_t isConnected
 function implementing the iot_is_mqtt_connected function
 
pReconnectFunc_t reconnect
 function implementing the iot_mqtt_reconnect function
 
pIsAutoReconnectEnabledFunc_t isAutoReconnectEnabled
 function implementing the iot_is_autoreconnect_enabled function
 
pSetAutoReconnectStatusFunc_t setAutoReconnectStatus
 function implementing the iot_mqtt_autoreconnect_set_status function
 

Detailed Description

Defines a structure of function pointers, each implementing a corresponding iot_mqtt_* function. In this way any MQTT client which implements the iot_mqtt_* interface can be swapped in under the MQTT/Shadow layer.