async_mqtt 5.0.0
|
MQTT PUBREL packet (v5) More...
#include <v5_pubrel.hpp>
Public Member Functions | |
basic_pubrel_packet (packet_id_t packet_id, pubrel_reason_code reason_code, properties props) | |
constructor | |
basic_pubrel_packet (packet_id_t packet_id) | |
constructor | |
basic_pubrel_packet (packet_id_t packet_id, pubrel_reason_code reason_code) | |
constructor | |
std::vector< as::const_buffer > | const_buffer_sequence () const |
Create const buffer sequence it is for boost asio APIs. | |
std::size_t | size () const |
Get packet size. | |
constexpr std::size_t | num_of_const_buffer_sequence () const |
Get number of element of const_buffer_sequence. | |
packet_id_t | packet_id () const |
Get packet_id. | |
pubrel_reason_code | code () const |
properties const & | props () const |
MQTT PUBREL packet (v5)
PacketIdBytes | size of packet_id |
If basic_endpoint::set_auto_pub_response() is called with true, then this packet is automatically sent when PUBREC v5::basic_pubrec_packet is received. If both the client and the broker keeping the session, this packet is stored in the endpoint for resending if disconnect/reconnect happens. If the session doesn' exist or lost, then the stored packets are erased.
See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901141
|
inline |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBREC packet |
reason_code | PubrelReasonCode See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901144 |
props | properties. See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901145 |
|
inline |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBREC packet |
|
inline |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBREC packet |
reason_code | PubrelReasonCode See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901144 |
|
inline |
@breif Get reason code
|
inline |
Create const buffer sequence it is for boost asio APIs.
|
inlineconstexpr |
Get number of element of const_buffer_sequence.
|
inline |
Get packet_id.
|
inline |
@breif Get properties
|
inline |
Get packet size.