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#ifndef IOT_MQTTFAST_PACKETS_SUBSCRIBE_H
43#define IOT_MQTTFAST_PACKETS_SUBSCRIBE_H
45#include "iot/mqtt-fast/ControlPacket.h"
46#include "iot/mqtt-fast/Topic.h"
52#ifndef DOXYGEN_SHOULD_SKIP_THIS
59#define MQTT_SUBSCRIBE 0x08
void putInt8(uint8_t value)
ControlPacket(iot::mqtt_fast::ControlPacketFactory &controlPacketFactory)
void putInt16(uint16_t value)
void putString(const std::string &value)
ControlPacket(uint8_t type, uint8_t reserved=0)
const std::string & getName() const
uint8_t getRequestedQoS() const
std::list< iot::mqtt_fast::Topic > topics
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