18 lines
464 B
C++
18 lines
464 B
C++
#ifndef INCLUDE_PACKET_INTERFACE_VARIABLE_HEADER_HPP_
|
|
#define INCLUDE_PACKET_INTERFACE_VARIABLE_HEADER_HPP_
|
|
|
|
#include <binary_data.hpp>
|
|
#include <property.hpp>
|
|
#include <utf8_string.hpp>
|
|
#include <variable_byte_int.hpp>
|
|
|
|
struct VariableHeader {
|
|
uint16_t packet_identifier = 0;
|
|
MQTTProperties properties;
|
|
uint byte_size = 0;
|
|
};
|
|
|
|
std::ostream &operator<<(std::ostream &os, const VariableHeader &value);
|
|
|
|
#endif // INCLUDE_PACKET_INTERFACE_VARIABLE_HEADER_HPP_
|