SOIL C++
C++ Unified Device Interface
MQTT::MessageContainer Struct Reference

Internal MQTT message struct. More...

#include <MessageContainer.h>

Public Attributes

std::string topic
 Message Topic. More...
 
std::string message
 Message. More...
 
int qos
 Quality of Service. More...
 
bool retain
 Retain Flag. More...
 

Detailed Description

Struct to manage MQTT message data internally using standard strings.

Definition at line 10 of file MessageContainer.h.

Member Data Documentation

◆ message

std::string MQTT::MessageContainer::message

Primary content of the messsage to send.

Definition at line 24 of file MessageContainer.h.

◆ qos

int MQTT::MessageContainer::qos

MQTT Quality of service level to choose for the message. Check the MQTT specifications for the exact behaviours of 0, 1, and 2 in conjuncation with message retention.

Definition at line 32 of file MessageContainer.h.

◆ retain

bool MQTT::MessageContainer::retain

Flag whether to retain the message on the broker after disconnection.

Definition at line 39 of file MessageContainer.h.

◆ topic

std::string MQTT::MessageContainer::topic

Topic to which the message shall be sent.

Definition at line 17 of file MessageContainer.h.


The documentation for this struct was generated from the following file: