async_mqtt 5.0.0
|
MQTT PublishOptions. More...
#include <pubopts.hpp>
Public Member Functions | |
constexpr | opts (std::uint8_t value) |
constructor | |
constexpr | opts (retain value) |
constructor | |
constexpr | opts (dup value) |
constructor | |
constexpr | opts (qos value) |
constructor | |
constexpr opts | operator| (opts rhs) const |
Combine opts operator. | |
constexpr opts | operator| (retain rhs) const |
Combine opts operator. | |
constexpr opts | operator| (dup rhs) const |
Combine opts operator. | |
constexpr opts | operator| (qos rhs) const |
Combine opts operator. | |
constexpr opts & | operator|= (opts rhs) |
Combine opts operator. | |
constexpr opts & | operator|= (retain rhs) |
Combine opts operator. | |
constexpr opts & | operator|= (dup rhs) |
Combine opts operator. | |
constexpr opts & | operator|= (qos rhs) |
Combine opts operator. | |
constexpr retain | get_retain () const |
Get retain. | |
constexpr dup | get_dup () const |
Get dup. | |
constexpr qos | get_qos () const |
Get qos. | |
constexpr | operator std::uint8_t () const |
Get byte image. | |
constexpr bool | operator== (opts rhs) const |
equal operator | |
constexpr bool | operator< (opts rhs) const |
less than operator | |
Related Symbols | |
(Note that these are not member symbols.) | |
constexpr bool | is_dup (std::uint8_t v) |
Check fixed header is DUP. | |
constexpr qos | get_qos (std::uint8_t v) |
Get qos from the fixed header. | |
constexpr bool | is_retain (std::uint8_t v) |
Check fixed header is RETAIN. | |
constexpr void | set_dup (std::uint8_t &fixed_header, bool dup) |
Set DUP to the fixed header. | |
constexpr opts | operator| (retain lhs, dup rhs) |
Combine opts operator. | |
constexpr opts | operator| (retain lhs, qos rhs) |
Combine opts operator. | |
constexpr opts | operator| (dup lhs, retain rhs) |
Combine opts operator. | |
constexpr opts | operator| (dup lhs, qos rhs) |
Combine opts operator. | |
constexpr opts | operator| (qos lhs, retain rhs) |
Combine opts operator. | |
constexpr opts | operator| (qos lhs, dup rhs) |
Combine opts operator. | |
constexpr char const * | retain_to_str (retain v) |
stringize retain | |
std::ostream & | operator<< (std::ostream &os, retain val) |
output to the stream retain | |
constexpr char const * | dup_to_str (dup v) |
stringize dup | |
std::ostream & | operator<< (std::ostream &os, dup val) |
output to the stream dup | |
MQTT PublishOptions.
See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901101
|
inlineexplicitconstexpr |
constructor
value | Byte image of the options |
constructor
value | retain |
Get retain.
|
inlineexplicitconstexpr |
Get byte image.
Get qos from the fixed header.
v | fixed_header byte |
Check fixed header is DUP.
v | fixed_header byte |
Check fixed header is RETAIN.
v | fixed_header byte |
Set DUP to the fixed header.
fixed_header | fixed_header byte |
dup | DUP to set |