1.2.3 MQTT System Service Interface

Data Types and Constants Summary

NameDescription
SYS_MQTT_INTF_WIFIMqtt Socket Intf - Wifi
SYS_MQTT_INTF_ETHERNETMqtt Socket Intf - Ethernet
SYS_MQTT_STATUSIdentifies the current status of the Sys Mqtt Instance.
SYS_MQTT_RESULTIdentifies the return values for the Sys Mqtt APIs.
SYS_MQTT_BrokerConfigUsed for passing on the configuration related to the MQTT Broker
SYS_MQTT_SubscribeConfigUsed for passing on the configuration related to the MQTT Subtopics the user
SYS_MQTT_PublishConfigUsed for Reading the message that has been received on a topic subscribed to.
SYS_MQTT_PublishTopicCfgUsed for publishing a message on a topic. It contains the config related to the Topic
SYS_MQTT_EVENT_TYPEEvent Message Type which comes with the Callback SYS_MQTT_CALLBACK()
SYS_MQTT_ConfigUsed for passing on the configuration related to the either MQTT Broker,

Initialization functions Summary

NameDescription
SYS_MQTT_InitializeReturns success/ failure for initialization of data structures of the MQTT service
SYS_MQTT_DeinitializeDeinitialization of data structures of the MQTT service

Status functions Summary

NameDescription
SYS_MQTT_GetStatusReturns System MQTT instance status.

Setup functions Summary

NameDescription
SYS_MQTT_ConnectConnects to the configured MQTT Broker.
SYS_MQTT_DisconnectDisconnects from the MQTT Server
SYS_MQTT_TaskExecutes the MQTT Service State Machine
SYS_MQTT_SubscribeReturns success/ failure for the subscribing to a Topic by the user.
SYS_MQTT_UnsubscribeReturns success/ failure for the unsubscribing to a Topic by the user.

Data Exchange functions Summary

NameDescription
SYS_MQTT_PublishReturns success/ failure for the publishing of message asked by the user.
SYS_MQTT_CALLBACKPointer to a MQTT system service callback function.