2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#include "iot/mqtt-fast/packets/Subscribe.h"
22#ifndef DOXYGEN_SHOULD_SKIP_THIS
38 for (
const iot::mqtt_fast::Topic& topic :
this->topics) {
39 putString(topic.getName());
40 putInt8(topic.getRequestedQoS());
51 const uint8_t requestedQoS =
getInt8();
52 topics.emplace_back(name, requestedQoS);
56 error = topics.empty();
ControlPacket(iot::mqtt_fast::ControlPacketFactory &controlPacketFactory)
void putInt16(uint16_t value)
ControlPacket(uint8_t type, uint8_t reserved=0)
const std::list< iot::mqtt_fast::Topic > & getTopics() const
Subscribe(uint16_t packetIdentifier, const std::list< iot::mqtt_fast::Topic > &topics)
uint16_t packetIdentifier
Subscribe(iot::mqtt_fast::ControlPacketFactory &controlPacketFactory)
uint16_t getPacketIdentifier() const