async_mqtt 5.0.0
Loading...
Searching...
No Matches
suback_return_code.hpp File Reference
#include <cstdint>
#include <ostream>
#include <async_mqtt/packet/qos.hpp>

Go to the source code of this file.

Enumerations

enum class  async_mqtt::suback_return_code : std::uint8_t { success_maximum_qos_0 = 0x00 , success_maximum_qos_1 = 0x01 , success_maximum_qos_2 = 0x02 , failure = 0x80 }
 MQTT suback_return_code. More...
 

Functions

constexpr suback_return_code async_mqtt::qos_to_suback_return_code (qos q)
 create suback_return_code from qos
 
constexpr char constasync_mqtt::suback_return_code_to_str (suback_return_code v)
 stringize suback_return_code
 

Enumeration Type Documentation

◆ suback_return_code

enum class async_mqtt::suback_return_code : std::uint8_t
strong

MQTT suback_return_code.


See http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718071

Enumerator
success_maximum_qos_0 

Success with QoS0.

success_maximum_qos_1 

Success with QoS1.

success_maximum_qos_2 

Success with QoS2.

failure 

Fail.

Function Documentation

◆ qos_to_suback_return_code()

constexpr suback_return_code async_mqtt::qos_to_suback_return_code ( qos q)
constexpr

create suback_return_code from qos

Parameters
qqos
Returns
suback_retun_code