2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#ifndef IOT_MQTTFAST_PACKETS_PUBLISH_H
21#define IOT_MQTTFAST_PACKETS_PUBLISH_H
23#include "iot/mqtt-fast/ControlPacket.h"
29#ifndef DOXYGEN_SHOULD_SKIP_THIS
36#define MQTT_PUBLISH 0x03
42 Publish(uint16_t packetIdentifier,
43 const std::string& topic,
44 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