Define a class for the MQTT Fixed header.
#include <Packet.hpp>
◆ PacketFixedHeader()
awsiotsdk::mqtt::PacketFixedHeader::PacketFixedHeader |
( |
| ) |
|
- Returns
- Initializes the fixed header with default values, sets is_valid_ to false
◆ AppendToBuffer()
void awsiotsdk::mqtt::PacketFixedHeader::AppendToBuffer |
( |
util::String & |
p_buf | ) |
|
- Parameters
-
p_buf | Reference to target string |
◆ GetMessageType()
MessageTypes awsiotsdk::mqtt::PacketFixedHeader::GetMessageType |
( |
| ) |
|
◆ GetRemainingLength()
size_t awsiotsdk::mqtt::PacketFixedHeader::GetRemainingLength |
( |
| ) |
|
|
inline |
◆ GetRemainingLengthByteCount()
size_t awsiotsdk::mqtt::PacketFixedHeader::GetRemainingLengthByteCount |
( |
| ) |
|
- Returns
- Number of butes required to store remaining length
◆ Initialize()
ResponseCode awsiotsdk::mqtt::PacketFixedHeader::Initialize |
( |
MessageTypes |
message_type, |
|
|
bool |
is_duplicate, |
|
|
QoS |
qos, |
|
|
bool |
is_retained, |
|
|
size_t |
rem_len |
|
) |
| |
- Parameters
-
message_type | MQTT message type |
is_duplicate | Is this a duplicate message (For publish messages) |
qos | QoS to use for this message (For publish messages) |
is_retained | MQTT is retained flag (For publish messages) |
rem_len | Remaining length |
- Returns
- ResponseCode indicating status of request
◆ isHeaderValid()
bool awsiotsdk::mqtt::PacketFixedHeader::isHeaderValid |
( |
| ) |
|
- Returns
- boolean indicating validity
◆ Length()
size_t awsiotsdk::mqtt::PacketFixedHeader::Length |
( |
| ) |
|
|
inline |