AWS IoT C++ SDK
|
Define a class for Suback Packet type. More...
#include <Subscribe.hpp>
Public Member Functions | |
SubackPacket (const SubackPacket &)=delete | |
SubackPacket (SubackPacket &&)=delete | |
SubackPacket & | operator= (const SubackPacket &) &=delete |
SubackPacket & | operator= (SubackPacket &&) &=delete |
SubackPacket (const util::Vector< unsigned char > &buf) | |
Constructor. More... | |
util::String | ToString () |
Serialize this packet into a String. More... | |
![]() | |
Packet (const Packet &)=delete | |
Packet (Packet &&)=delete | |
Packet & | operator= (const Packet &) &=delete |
Packet & | operator= (Packet &&) &=delete |
uint16_t | GetActionId () |
Get ID of the current run of this Action. More... | |
void | SetActionId (uint16_t action_id) |
Set the Action ID for this run of the Action. More... | |
bool | isPacketDataValid () |
uint16_t | GetPacketId () |
void | SetPacketId (uint16_t packet_id) |
size_t | Size () |
virtual util::String | ToString ()=0 |
![]() | |
ActionData (const ActionData &)=default | |
ActionData (ActionData &&)=default | |
ActionData & | operator= (const ActionData &) &=default |
ActionData & | operator= (ActionData &&) &=default |
virtual uint16_t | GetActionId ()=0 |
Get ID of the current run of this Action. More... | |
virtual void | SetActionId (uint16_t action_id)=0 |
Set the Action ID for this run of the Action. More... | |
Static Public Member Functions | |
static std::shared_ptr< SubackPacket > | Create (const util::Vector< unsigned char > &buf) |
Factory Create method. More... | |
![]() | |
static void | AppendUInt16ToBuffer (util::String &buf, uint16_t value) |
static void | AppendUtf8StringToBuffer (util::String &buf, std::unique_ptr< Utf8String > &utf8_str) |
static void | AppendUtf8StringToBuffer (util::String &buf, std::shared_ptr< Utf8String > &utf8_str) |
static uint16_t | ReadUInt16FromBuffer (const util::Vector< unsigned char > &buf, size_t &extract_index) |
static std::unique_ptr< Utf8String > | ReadUtf8StringFromBuffer (const util::Vector< unsigned char > &buf, size_t &extract_index) |
Data Fields | |
util::Vector< uint8_t > | suback_list_ |
Vector containing subacks included in this packet. | |
![]() | |
AsyncAckNotificationHandlerPtr | p_async_ack_handler_ |
Handler to call when response is received for this action. | |
Additional Inherited Members | |
![]() | |
typedef std::function< void(uint16_t action_id, ResponseCode rc)> | AsyncAckNotificationHandlerPtr |
![]() | |
PacketFixedHeader | fixed_header_ |
Fixed header for this packet instance. | |
size_t | packet_size_ |
Size of the packet. | |
size_t | serialized_packet_length_ |
Serialized length of the entire packet including fixed header. | |
std::atomic_uint_fast16_t | packet_id_ |
Message sequence identifier. Handled automatically by the MQTT client. | |
This class defines the Packet type used in MQTT to Acknowledge Subscribe requests
awsiotsdk::mqtt::SubackPacket::SubackPacket | ( | const util::Vector< unsigned char > & | buf | ) |
buf | Serialized version of the packet to parse |
|
static |
buf | Serialized version of the packet to parse |
|
virtual |
Implements awsiotsdk::mqtt::Packet.