|
Data Gator
Hardware and software documentation for the Data Gator project.
|
An object that stores data from which a topic and message can be extracted for publishing to an MQTT broker. More...
#include <MQTTMailer.hpp>
Public Member Functions | |
| MQTTMail (std::string topic, std::string message) | |
| std::string | getMessage () |
| Convert the data fields to an MQTT message string which can be published. | |
| std::string | getTopic () |
| The topic/destination this MQTT object should be published to. | |
| std::string | to_string () |
Private Attributes | |
| std::string | topic |
| std::string | message |
| PacketType_t | packet_type = INVALID |
An object that stores data from which a topic and message can be extracted for publishing to an MQTT broker.
| std::string MQTTMail::getMessage | ( | ) |
Convert the data fields to an MQTT message string which can be published.
| std::string MQTTMail::getTopic | ( | ) |
The topic/destination this MQTT object should be published to.