async_mqtt 5.0.0
|
MQTT PUBACK packet (v5) More...
#include <v5_puback.hpp>
Public Member Functions | |
basic_puback_packet (packet_id_t packet_id, puback_reason_code reason_code, properties props) | |
constructor | |
basic_puback_packet (packet_id_t packet_id) | |
constructor | |
basic_puback_packet (packet_id_t packet_id, puback_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. | |
puback_reason_code | code () const |
properties const & | props () const |
MQTT PUBACK 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 (QoS1) v5::basic_publish_packet is received.
When the packet is received, 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#_Toc3901121
|
inline |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBLISH(QoS1) packet |
reason_code | PubackReasonCode See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901124 |
props | properties. See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901125 |
|
inline |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBLISH(QoS1) packet |
|
inline |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBLISH(QoS1) packet |
reason_code | PubackReasonCode See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901124 |
|
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.