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_PUBLISH_H
43#define IOT_MQTTFAST_PACKETS_PUBLISH_H
45#include "iot/mqtt-fast/ControlPacket.h"
51#ifndef DOXYGEN_SHOULD_SKIP_THIS
58#define MQTT_PUBLISH 0x03
64 Publish(uint16_t packetIdentifier,
65 const std::string& topic,
66 const std::string& message,
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)
void putStringRaw(const std::string &value)
std::string getStringRaw()
Publish(iot::mqtt_fast::ControlPacketFactory &controlPacketFactory)
uint16_t packetIdentifier
uint16_t getPacketIdentifier() const
const std::string & getMessage() const
Publish(uint16_t packetIdentifier, const std::string &topic, const std::string &message, bool dup=false, uint8_t qoS=0, bool retain=false)
const std::string & getTopic() const