2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#include "iot/mqtt/ControlPacket.h"
22#include "iot/mqtt/FixedHeader.h"
24#ifndef DOXYGEN_SHOULD_SKIP_THIS
105 std::vector<
char> variablHeaderPayload = serializeVP();
107 const FixedHeader fixedHeader(type, flags,
static_cast<uint32_t>(variablHeaderPayload.size()));
109 std::vector<
char> packet = fixedHeader.serialize();
110 packet.insert(packet.end(), variablHeaderPayload.begin(), variablHeaderPayload.end());
std::vector< char > serialize() const
const std::string & getName() const
ControlPacket(uint8_t type, const std::string &name)
#define MQTT_CONNECT_FLAGS
#define MQTT_PUBREL_FLAGS
#define MQTT_PUBCOMP_FLAGS
#define MQTT_SUBSCRIBE_FLAGS
#define MQTT_SUBACK_FLAGS
#define MQTT_DISCONNECT_FLAGS
#define MQTT_PUBACK_FLAGS
#define MQTT_UNSUBSCRIBE_FLAGS
#define MQTT_CONNACK_FLAGS
#define MQTT_PINGREQ_FLAGS
#define MQTT_PUBREC_FLAGS
#define MQTT_UNSUBACK_FLAGS
#define MQTT_PINGRESP_FLAGS
const std::vector< std::string > mqttPackageName