async_mqtt 5.0.0
|
MQTT PUBREC packet (v5) More...
#include <v5_pubrec.hpp>
Public Member Functions | |
basic_pubrec_packet (packet_id_t packet_id, pubrec_reason_code reason_code, properties props) | |
constructor | |
basic_pubrec_packet (packet_id_t packet_id) | |
constructor | |
basic_pubrec_packet (packet_id_t packet_id, pubrec_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. | |
pubrec_reason_code | code () const |
properties const & | props () const |
MQTT PUBREC 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 PUBLISH (QoS2) v5::basic_publish_packet is received.
When the packet is received with error reason_code, the packet_id is automatically released and become reusable.
See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901131
|
inline |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBLISH(QoS2) packet |
reason_code | PubcompReasonCode See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901134 |
props | properties. See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901135 |
|
inline |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBLISH(QoS2) packet |
|
inline |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBLISH(QoS2) packet |
reason_code | PubcompReasonCode See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901134 |
|
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.