|
|
| ConnectPacket (const ConnectPacket &)=delete |
| |
|
| ConnectPacket (ConnectPacket &&)=delete |
| |
|
ConnectPacket & | operator= (const ConnectPacket &) &=delete |
| |
|
ConnectPacket & | operator= (ConnectPacket &&) &=delete |
| |
| | ConnectPacket (bool is_clean_session, mqtt::Version mqtt_version, std::chrono::seconds keep_alive_timeout, std::unique_ptr< Utf8String > p_client_id, std::unique_ptr< Utf8String > p_username, std::unique_ptr< Utf8String > p_password, std::unique_ptr< mqtt::WillOptions > p_will_msg, bool is_metrics_enabled) |
| | Constructor. More...
|
| |
| | ConnectPacket (bool is_clean_session, mqtt::Version mqtt_version, std::chrono::seconds keep_alive_timeout, std::unique_ptr< Utf8String > p_client_id, std::unique_ptr< Utf8String > p_username, std::unique_ptr< Utf8String > p_password, std::unique_ptr< mqtt::WillOptions > p_will_msg) |
| | Constructor. More...
|
| |
| util::String | ToString () |
| | Serialize this packet into a String. More...
|
| |
| std::chrono::seconds | GetKeepAliveTimeout () |
| | Get duration of Keep alive interval in seconds. More...
|
| |
| util::String | GetClientID () |
| | get the client ID from the connect packet 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 std::shared_ptr< ConnectPacket > | Create (bool is_clean_session, mqtt::Version mqtt_version, std::chrono::seconds keep_alive_timeout, std::unique_ptr< Utf8String > p_client_id, std::unique_ptr< Utf8String > p_username, std::unique_ptr< Utf8String > p_password, std::unique_ptr< mqtt::WillOptions > p_will_msg, bool is_metrics_enabled) |
| | Create Factory method. More...
|
| |
| static std::shared_ptr< ConnectPacket > | Create (bool is_clean_session, mqtt::Version mqtt_version, std::chrono::seconds keep_alive_timeout, std::unique_ptr< Utf8String > p_client_id, std::unique_ptr< Utf8String > p_username, std::unique_ptr< Utf8String > p_password, std::unique_ptr< mqtt::WillOptions > p_will_msg) |
| | Create Factory method, SDK metrics enabled by default. 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) |
| |
|
|
bool | is_clean_session_ |
| | MQTT clean session. True = this session is to be treated as clean. Previous server state is cleared and no information is retained from any previous connection.
|
| |
|
unsigned char | connect_flags_ |
| | MQTT Connect flags byte.
|
| |
|
std::chrono::seconds | keep_alive_timeout_ |
| | MQTT Keepalive timeout in seconds.
|
| |
|
mqtt::Version | mqtt_version_ |
| | Desired MQTT version used during connection.
|
| |
|
std::unique_ptr< Utf8String > | p_protocol_id_ |
| | The protocol ID for this connection.
|
| |
|
std::unique_ptr< Utf8String > | p_client_id_ |
| | Pointer to a string defining the MQTT client ID (this needs to be unique per device across your AWS account)
|
| |
|
std::unique_ptr< WillOptions > | p_will_msg_ |
| | MQTT LWT parameters.
|
| |
|
std::unique_ptr< Utf8String > | p_username_ |
| | MQTT Username.
|
| |
|
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.
|
| |
Defines a type for MQTT Connect message