2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#include "iot/mqtt/packets/Subscribe.h"
44#include "iot/mqtt/types/String.h"
45#include "iot/mqtt/types/UInt16.h"
47#ifndef DOXYGEN_SHOULD_SKIP_THIS
74 packet.insert(packet.end(), tmpPacket.begin(), tmpPacket.end());
76 packet.push_back(
static_cast<
char>(topic
.getQoS()));
ControlPacket(uint8_t type, const std::string &name)
const std::string & getName() const
Subscribe(uint16_t packetIdentifier, const std::list< iot::mqtt::Topic > &topics)
std::vector< char > serializeVP() const override
std::list< iot::mqtt::Topic > topics
const std::list< iot::mqtt::Topic > & getTopics() const
uint16_t getPacketIdentifier() const
iot::mqtt::types::UInt16 packetIdentifier
std::vector< char > serialize() const override
String & operator=(const std::string &newValue)
virtual std::vector< char > serialize() const
UInt16 & operator=(const uint16_t &newValue)