39 #ifndef AWS_IOT_SDK_SRC_IOT_MQTT_INTERFACE_H 40 #define AWS_IOT_SDK_SRC_IOT_MQTT_INTERFACE_H 53 #include "aws_iot_error.h" 54 #include "aws_iot_config.h" 58 #include "network_interface.h" 59 #include "timer_interface.h" 111 IoT_Error_t
aws_iot_mqtt_publish(AWS_IoT_Client *pClient,
const char *pTopicName, uint16_t topicNameLen,
133 IoT_Error_t
aws_iot_mqtt_subscribe(AWS_IoT_Client *pClient,
const char *pTopicName, uint16_t topicNameLen,
IoT_Error_t aws_iot_mqtt_disconnect(AWS_IoT_Client *pClient)
Disconnect an MQTT Connection.
Definition: aws_iot_mqtt_client_connect.c:543
IoT_Error_t aws_iot_mqtt_yield(AWS_IoT_Client *pClient, uint32_t timeout_ms)
Yield to the MQTT client.
Definition: aws_iot_mqtt_client_yield.c:273
IoT_Error_t aws_iot_mqtt_free(AWS_IoT_Client *pClient)
Clean mqtt client from all dynamic memory allocate.
Definition: aws_iot_mqtt_client.c:201
void(* pApplicationHandler_t)(AWS_IoT_Client *pClient, char *pTopicName, uint16_t topicNameLen, IoT_Publish_Message_Params *pParams, void *pClientData)
Application Callback Handler Type.
Definition: aws_iot_mqtt_client.h:227
MQTT Connection Parameters.
Definition: aws_iot_mqtt_client.h:134
IoT_Error_t aws_iot_mqtt_publish(AWS_IoT_Client *pClient, const char *pTopicName, uint16_t topicNameLen, IoT_Publish_Message_Params *pParams)
Publish an MQTT message on a topic.
Definition: aws_iot_mqtt_client_publish.c:245
Publish Message Parameters Type.
Definition: aws_iot_mqtt_client.h:87
IoT_Error_t aws_iot_mqtt_attempt_reconnect(AWS_IoT_Client *pClient)
MQTT Manual Re-Connection Function.
Definition: aws_iot_mqtt_client_connect.c:589
IoT_Error_t aws_iot_mqtt_unsubscribe(AWS_IoT_Client *pClient, const char *pTopicFilter, uint16_t topicFilterLen)
Unsubscribe to an MQTT topic.
Definition: aws_iot_mqtt_client_unsubscribe.c:199
IoT_Error_t aws_iot_mqtt_connect(AWS_IoT_Client *pClient, IoT_Client_Connect_Params *pConnectParams)
MQTT Connection Function.
Definition: aws_iot_mqtt_client_connect.c:452
Client definition for MQTT.
MQTT Initialization Parameters.
Definition: aws_iot_mqtt_client.h:170
IoT_Error_t aws_iot_mqtt_subscribe(AWS_IoT_Client *pClient, const char *pTopicName, uint16_t topicNameLen, QoS qos, pApplicationHandler_t pApplicationHandler, void *pApplicationHandlerData)
Subscribe to an MQTT topic.
Definition: aws_iot_mqtt_client_subscribe.c:276
IoT_Error_t aws_iot_mqtt_resubscribe(AWS_IoT_Client *pClient)
Subscribe to an MQTT topic.
Definition: aws_iot_mqtt_client_subscribe.c:389
IoT_Error_t aws_iot_mqtt_init(AWS_IoT_Client *pClient, IoT_Client_Init_Params *pInitParams)
MQTT Client Initialization Function.
Definition: aws_iot_mqtt_client.c:234
QoS
Quality of Service Type.
Definition: aws_iot_mqtt_client.h:76