#include <RetainTree.h>
Definition at line 40 of file RetainTree.h.
◆ RetainTree()
◆ appear()
void iot::mqtt::server::broker::RetainTree::appear |
( |
const std::string & | clientId, |
|
|
const std::string & | topic, |
|
|
uint8_t | qoS ) |
Definition at line 53 of file RetainTree.cpp.
53 {
55 }
void appear(const std::string &clientId, std::string topic, uint8_t qoS)
◆ clear()
void iot::mqtt::server::broker::RetainTree::clear |
( |
| ) |
|
◆ fromJson()
void iot::mqtt::server::broker::RetainTree::fromJson |
( |
const nlohmann::json & | json | ) |
|
Definition at line 57 of file RetainTree.cpp.
57 {
58 if (!json.empty()) {
60 }
61 }
TopicLevel & fromJson(const nlohmann::json &json)
◆ retain()
void iot::mqtt::server::broker::RetainTree::retain |
( |
Message && | message | ) |
|
Definition at line 43 of file RetainTree.cpp.
43 {
44 if (!message.getTopic().empty()) {
45 if (!message.getMessage().empty()) {
47 } else {
49 }
50 }
51 }
void retain(const Message &message, std::string topic)
bool release(std::string topic)
◆ toJson()
nlohmann::json iot::mqtt::server::broker::RetainTree::toJson |
( |
| ) |
const |
Definition at line 63 of file RetainTree.cpp.
63 {
65 }
nlohmann::json toJson() const
◆ head
TopicLevel iot::mqtt::server::broker::RetainTree::head |
|
private |
The documentation for this class was generated from the following files: