|
AWS IoT Device SDK C++ v2 1.44.2
AWS IoT Device SDK C++ v2
|
#include <Mqtt5Packets.h>
Public Member Functions | |
| DisconnectPacket (Allocator *allocator=ApiAllocator()) noexcept | |
| DisconnectPacket (const aws_mqtt5_packet_disconnect_view &raw_options, Allocator *allocator=ApiAllocator()) noexcept | |
| PacketType | getType () override |
| bool | initializeRawOptions (aws_mqtt5_packet_disconnect_view &raw_options) noexcept |
| DisconnectPacket & | WithReasonCode (const DisconnectReasonCode reasonCode) noexcept |
| DisconnectPacket & | WithSessionExpiryIntervalSec (const uint32_t sessionExpiryIntervalSeconds) noexcept |
| DisconnectPacket & | WithReasonString (Crt::String reasonString) noexcept |
| DisconnectPacket & | WithServerReference (Crt::String serverReference) noexcept |
| DisconnectPacket & | WithUserProperties (const Vector< UserProperty > &userProperties) noexcept |
| DisconnectPacket & | WithUserProperties (Vector< UserProperty > &&userProperties) noexcept |
| DisconnectPacket & | WithUserProperty (UserProperty &&property) noexcept |
| DisconnectReasonCode | getReasonCode () const noexcept |
| const Crt::Optional< uint32_t > & | getSessionExpiryIntervalSec () const noexcept |
| const Crt::Optional< Crt::String > & | getReasonString () const noexcept |
| const Crt::Optional< Crt::String > & | getServerReference () const noexcept |
| const Crt::Vector< UserProperty > & | getUserProperties () const noexcept |
| virtual | ~DisconnectPacket () |
| DisconnectPacket (const DisconnectPacket &)=delete | |
| DisconnectPacket (DisconnectPacket &&) noexcept=delete | |
| DisconnectPacket & | operator= (const DisconnectPacket &)=delete |
| DisconnectPacket & | operator= (DisconnectPacket &&) noexcept=delete |
| Public Member Functions inherited from Aws::Crt::Mqtt5::IPacket | |
| virtual | ~IPacket ()=default |
Data model of an MQTT5 DISCONNECT packet.
|
noexcept |
|
noexcept |
|
virtual |
|
delete |
|
deletenoexcept |
|
noexcept |
Value indicating the reason that the sender is closing the connection
See MQTT5 Disconnect Reason Code
|
noexcept |
Additional diagnostic information about the reason that the sender is closing the connection
|
noexcept |
Property indicating an alternate server that the client may temporarily or permanently attempt to connect to instead of the configured endpoint. Will only be set if the reason code indicates another server may be used (ServerMoved, UseAnotherServer).
|
noexcept |
A change to the session expiry interval negotiated at connection time as part of the disconnect. Only valid for DISCONNECT packets sent from client to server. It is not valid to attempt to change session expiry from zero to a non-zero value.
See MQTT5 Session Expiry Interval
|
inlineoverridevirtual |
Implements Aws::Crt::Mqtt5::IPacket.
|
noexcept |
|
noexcept |
|
delete |
|
deletenoexcept |
|
noexcept |
Sets the value indicating the reason that the sender is closing the connection
See MQTT5 Disconnect Reason Code
| reasonCode | Value indicating the reason that the sender is closing the connection |
|
noexcept |
Sets the additional diagnostic information about the reason that the sender is closing the connection
| reasonString | Additional diagnostic information about the reason that the sender is closing the connection |
|
noexcept |
Sets the property indicating an alternate server that the client may temporarily or permanently attempt to connect to instead of the configured endpoint. Will only be set if the reason code indicates another server may be used (ServerMoved, UseAnotherServer).
| serverReference | Property indicating an alternate server that the client may temporarily or permanently attempt to connect to instead of the configured endpoint. |
|
noexcept |
Sets the change to the session expiry interval negotiated at connection time as part of the disconnect. Only valid for DISCONNECT packets sent from client to server. It is not valid to attempt to change session expiry from zero to a non-zero value.
See MQTT5 Session Expiry Interval
| sessionExpiryIntervalSeconds |
|
noexcept |
Sets the list of MQTT5 user properties included with the packet.
| userProperties | List of MQTT5 user properties included with the packet. |
|
noexcept |
Sets the list of MQTT5 user properties included with the packet.
| userProperties | List of MQTT5 user properties included with the packet. |
|
noexcept |
Put a MQTT5 user property to the back of the packet user property vector/list
| property | set of userProperty of MQTT5 user properties included with the packet. |