1.2.3.9 SYS_MQTT_Config Struct

C

typedef struct
{
    //MQTT Broker Configuration
    SYS_MQTT_BrokerConfig sBrokerConfig;
    
    //Number of Topis Subscribed to (0-SYS_MQTT_MAX_TOPICS)
    uint8_t subscribeCount;
    
    //Config for all the Topics Subscribed to
    SYS_MQTT_SubscribeConfig sSubscribeConfig[SYS_MQTT_SUB_MAX_TOPICS];
    
    //If last will and testament(LWT) is enabled or not
    bool bLwtEnabled;
    
    // LWT Configuration
    SYS_MQTT_PublishConfig sLwtConfig;
    
    //Network Interface - Wifi or Ethernet
    uint8_t intf;
} SYS_MQTT_Config;

Summary

Used for passing on the configuration related to the either MQTT Broker, or the Cloud Vendors AWS/ Azure, etc.

Remarks

None.