async_mqtt 9.0.1
Loading...
Searching...
No Matches
qos_util.hpp
1// Copyright Takatoshi Kondo 2022
2//
3// Distributed under the Boost Software License, Version 1.0.
4// (See accompanying file LICENSE_1_0.txt or copy at
5// http://www.boost.org/LICENSE_1_0.txt)
6
7#if !defined(ASYNC_MQTT_PACKET_QOS_UTIL_HPP)
8#define ASYNC_MQTT_PACKET_QOS_UTIL_HPP
9
10#include <async_mqtt/error.hpp>
11#include <async_mqtt/packet/qos.hpp>
12
13namespace async_mqtt {
14
27 return static_cast<suback_return_code>(q);
28}
29
42 return static_cast<suback_reason_code>(q);
43}
44
45} // namespace async_mqtt
46
47#endif // ASYNC_MQTT_PACKET_QOS_UTIL_HPP
qos
MQTT QoS.
Definition qos.hpp:35
suback_reason_code
suback reason code It is reported as SUBSCRIBE response via SUBNACK packet
Definition error.hpp:553
suback_return_code
MQTT suback_return_code.
Definition error.hpp:274
constexpr suback_return_code qos_to_suback_return_code(qos q)
create suback_return_code corresponding to the QoS
Definition qos_util.hpp:26
constexpr suback_reason_code qos_to_suback_reason_code(qos q)
create suback_reason_code corresponding to the QoS
Definition qos_util.hpp:41