28#ifndef OTA_MQTT_INTERFACE_H
29#define OTA_MQTT_INTERFACE_H
81typedef enum OtaMqttStatus
106 uint16_t topicFilterLength,
125 uint16_t topicFilterLength,
155typedef struct OtaMqttInterface
OtaMqttStatus_t
The OTA MQTT interface return status.
Definition: ota_mqtt_interface.h:82
@ OtaMqttSuccess
OTA MQTT interface success.
Definition: ota_mqtt_interface.h:83
@ OtaMqttUnsubscribeFailed
Failed to unsubscribe from a topic.
Definition: ota_mqtt_interface.h:86
@ OtaMqttPublishFailed
Attempt to publish a MQTT message failed.
Definition: ota_mqtt_interface.h:84
@ OtaMqttSubscribeFailed
Failed to subscribe to a topic.
Definition: ota_mqtt_interface.h:85
OtaMqttStatus_t(* OtaMqttSubscribe_t)(const char *pTopicFilter, uint16_t topicFilterLength, uint8_t ucQoS)
Subscribe to the Mqtt topics.
Definition: ota_mqtt_interface.h:105
OtaMqttStatus_t(* OtaMqttPublish_t)(const char *const pacTopic, uint16_t usTopicLen, const char *pcMsg, uint32_t ulMsgSize, uint8_t ucQos)
Publish message to a topic.
Definition: ota_mqtt_interface.h:145
OtaMqttStatus_t(* OtaMqttUnsubscribe_t)(const char *pTopicFilter, uint16_t topicFilterLength, uint8_t ucQoS)
Unsubscribe to the Mqtt topics.
Definition: ota_mqtt_interface.h:124
OTA Event Interface structure.
Definition: ota_mqtt_interface.h:156
OtaMqttPublish_t publish
Interface for publishing MQTT messages.
Definition: ota_mqtt_interface.h:159
OtaMqttSubscribe_t subscribe
Interface for subscribing to Mqtt topics.
Definition: ota_mqtt_interface.h:157
OtaMqttUnsubscribe_t unsubscribe
interface for unsubscribing to MQTT topics.
Definition: ota_mqtt_interface.h:158