#include <Publish.h>
Definition at line 37 of file Publish.h.
◆ Publish() [1/2]
iot::mqtt::packets::Publish::Publish |
( |
| ) |
|
◆ Publish() [2/2]
iot::mqtt::packets::Publish::Publish |
( |
uint16_t | packetIdentifier, |
|
|
const std::string & | topic, |
|
|
const std::string & | message, |
|
|
uint8_t | qoS, |
|
|
bool | dup, |
|
|
bool | retain ) |
◆ getDup()
bool iot::mqtt::packets::Publish::getDup |
( |
| ) |
const |
◆ getMessage()
std::string iot::mqtt::packets::Publish::getMessage |
( |
| ) |
const |
◆ getPacketIdentifier()
uint16_t iot::mqtt::packets::Publish::getPacketIdentifier |
( |
| ) |
const |
◆ getQoS()
uint8_t iot::mqtt::packets::Publish::getQoS |
( |
| ) |
const |
◆ getRetain()
bool iot::mqtt::packets::Publish::getRetain |
( |
| ) |
const |
◆ getTopic()
std::string iot::mqtt::packets::Publish::getTopic |
( |
| ) |
const |
◆ serializeVP()
std::vector< char > iot::mqtt::packets::Publish::serializeVP |
( |
| ) |
const |
|
overrideprivatevirtual |
Implements iot::mqtt::ControlPacket.
Definition at line 45 of file Publish.cpp.
45 {
47
50 packet.insert(packet.end(), tmpVector.begin(), tmpVector.end());
51 }
52
54 packet.insert(packet.end(), tmpVector.begin(), tmpVector.end());
55
56 return packet;
57 }
std::vector< char > serialize() const override
virtual std::vector< char > serialize() const
References qoS.
◆ dup
bool iot::mqtt::packets::Publish::dup = false |
|
protected |
◆ message
◆ packetIdentifier
◆ qoS
uint8_t iot::mqtt::packets::Publish::qoS = 0 |
|
protected |
◆ retain
bool iot::mqtt::packets::Publish::retain = false |
|
protected |
◆ topic
The documentation for this class was generated from the following files: