7#if !defined(ASYNC_MQTT_PACKET_GET_PROTOCOL_VERSION_HPP)
8#define ASYNC_MQTT_PACKET_GET_PROTOCOL_VERSION_HPP
10#include <async_mqtt/buffer.hpp>
12#include <async_mqtt/packet/copy_to_static_vector.hpp>
18 static_vector<char, 4> sv;
21 if (
auto vl_opt = insert_advance_variable_length(buf, sv)) {
22 if (buf.size() >= 6) {
26 return protocol_version::undetermined;
protocol_version
MQTT protocol version.
Definition protocol_version.hpp:20