|
kmMqtt 0.0.1
MQTT Client Library
|
Represents an MQTT PUBREC packet. More...
#include <PublishRec.h>
Public Member Functions | |
| PacketType | getPacketType () const noexcept override |
| Gets the packet type of the MQTT packet. | |
| Public Member Functions inherited from kmMqtt::mqtt::BasePacket | |
| EncodeResult | encode () |
| Encodes the MQTT packet into a ByteBuffer. | |
| DecodeResult | decode () |
| Decodes the MQTT packet from the internal data buffer. | |
| const FixedHeader & | getFixedHeader () const |
| Gets the fixed header of the MQTT packet. | |
| const ByteBuffer & | getDataBuffer () const |
| Gets the data buffer of the MQTT packet. | |
| ByteBuffer && | extractDataBuffer () noexcept |
| Extracts the data buffer, transferring ownership to the caller. | |
Protected Member Functions | |
| void | onFixedHeaderDecoded () const override |
| Callback invoked after the fixed header has been decoded. | |
| Protected Member Functions inherited from kmMqtt::mqtt::BasePacket | |
| std::size_t | calculateFixedHeaderRemainingLength () const |
| Calculates the remaining length for the fixed header based on other headers. | |
| void | addEncodeHeader (const IEncodeHeader *header) |
| Adds an encode header to the packet. | |
| void | addDecodeHeader (IDecodeHeader *header) |
| Adds a decode header to the packet. | |
Represents an MQTT PUBREC packet.
Used in QoS 2 message flow to acknowledge receipt of a PUBLISH packet. Contains a variable header with packet identifier, reason code, and properties.
|
overridevirtualnoexcept |
Gets the packet type of the MQTT packet.
Implements kmMqtt::mqtt::BasePacket.
|
overrideprotectedvirtual |
Callback invoked after the fixed header has been decoded.
Can be overridden by derived classes for additional processing thats required post fixed header decoding.
Reimplemented from kmMqtt::mqtt::BasePacket.