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

Go to the source code of this file.

Classes

struct  async_mqtt::sub::opts
 MQTT SubscribeOptions. More...
 

Enumerations

enum class  async_mqtt::sub::retain_handling : std::uint8_t { send = 0b00000000 , send_only_new_subscription = 0b00010000 , not_send = 0b00100000 }
 MQTT RetainHandling. More...
 
enum class  async_mqtt::sub::rap : std::uint8_t { dont = 0b00000000 , retain = 0b00001000 }
 MQTT RetainAsPublished. More...
 
enum class  async_mqtt::sub::nl : std::uint8_t { no = 0b00000000 , yes = 0b00000100 }
 MQTT NoLocal. More...
 

Enumeration Type Documentation

◆ nl

enum class async_mqtt::sub::nl : std::uint8_t
strong

MQTT NoLocal.


See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901169

Enumerator
no 

Subscriber's publish would be delivered to the subscriber itself. Same as MQTT v.3.1.1.

yes 

Subscriber's publish would not be delivered to the subscriber itself.

◆ rap

enum class async_mqtt::sub::rap : std::uint8_t
strong

MQTT RetainAsPublished.


See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901169

Enumerator
dont 

Retain is set to 0 delivery on publish by the broker. Same as MQTT v.3.1.1.

retain 

Preserve published Retain delivery on publish by the broker.

◆ retain_handling

enum class async_mqtt::sub::retain_handling : std::uint8_t
strong

MQTT RetainHandling.


See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901169

Enumerator
send 

Always send. Same as MQTT v.3.1.1.

send_only_new_subscription 

Only new subscription. Not overwrite.

not_send 

Always not send.