|
AWS IoT Device SDK C++ v2 1.44.2
AWS IoT Device SDK C++ v2
|
#include <Mqtt5Packets.h>
Public Member Functions | |
| PublishPacket (const aws_mqtt5_packet_publish_view &raw_options, Allocator *allocator=ApiAllocator()) noexcept | |
| PublishPacket (Allocator *allocator=ApiAllocator()) noexcept | |
| PublishPacket (Crt::String topic, ByteCursor payload, Mqtt5::QOS qos, Allocator *allocator=ApiAllocator()) noexcept | |
| PacketType | getType () override |
| PublishPacket & | WithPayload (ByteCursor payload) noexcept |
| PublishPacket & | WithQOS (Mqtt5::QOS packetQOS) noexcept |
| PublishPacket & | WithRetain (bool retain) noexcept |
| PublishPacket & | WithTopic (Crt::String topic) noexcept |
| PublishPacket & | WithPayloadFormatIndicator (PayloadFormatIndicator payloadFormat) noexcept |
| PublishPacket & | WithMessageExpiryIntervalSec (uint32_t second) noexcept |
| PublishPacket & | WithTopicAlias (uint16_t topicAlias) noexcept |
| PublishPacket & | WithResponseTopic (ByteCursor responseTopic) noexcept |
| PublishPacket & | WithCorrelationData (ByteCursor correlationData) noexcept |
| PublishPacket & | WithContentType (ByteCursor contentType) noexcept |
| PublishPacket & | WithUserProperties (const Vector< UserProperty > &userProperties) noexcept |
| PublishPacket & | WithUserProperties (Vector< UserProperty > &&userProperties) noexcept |
| PublishPacket & | WithUserProperty (UserProperty &&property) noexcept |
| bool | initializeRawOptions (aws_mqtt5_packet_publish_view &raw_options) noexcept |
| const ByteCursor & | getPayload () const noexcept |
| Mqtt5::QOS | getQOS () const noexcept |
| bool | getRetain () const noexcept |
| const Crt::String & | getTopic () const noexcept |
| const Crt::Optional< PayloadFormatIndicator > & | getPayloadFormatIndicator () const noexcept |
| const Crt::Optional< uint32_t > & | getMessageExpiryIntervalSec () const noexcept |
| const Crt::Optional< uint16_t > & | getTopicAlias () const noexcept |
| const Crt::Optional< ByteCursor > & | getResponseTopic () const noexcept |
| const Crt::Optional< ByteCursor > & | getCorrelationData () const noexcept |
| const Crt::Vector< uint32_t > & | getSubscriptionIdentifiers () const noexcept |
| const Crt::Optional< ByteCursor > & | getContentType () const noexcept |
| const Crt::Vector< UserProperty > & | getUserProperties () const noexcept |
| virtual | ~PublishPacket () |
| PublishPacket (const PublishPacket &)=delete | |
| PublishPacket (PublishPacket &&) noexcept=delete | |
| PublishPacket & | operator= (const PublishPacket &)=delete |
| PublishPacket & | operator= (PublishPacket &&) noexcept=delete |
| Public Member Functions inherited from Aws::Crt::Mqtt5::IPacket | |
| virtual | ~IPacket ()=default |
Data model of an MQTT5 PUBLISH packet
|
noexcept |
|
noexcept |
|
noexcept |
|
virtual |
|
delete |
|
deletenoexcept |
|
noexcept |
Property specifying the content type of the payload. Not internally meaningful to MQTT5.
|
noexcept |
Opaque binary data used to correlate between publish messages, as a potential method for request-response implementation. Not internally meaningful to MQTT5.
|
noexcept |
Sent publishes - indicates the maximum amount of time allowed to elapse for message delivery before the server should instead delete the message (relative to a recipient).
Received publishes - indicates the remaining amount of time (from the server's perspective) before the message would have been deleted relative to the subscribing client.
If left null, indicates no expiration timeout.
See MQTT5 Message Expiry Interval
|
noexcept |
The payload of the publish message.
|
noexcept |
Property specifying the format of the payload data. The mqtt5 client does not enforce or use this value in a meaningful way.
See MQTT5 Payload Format Indicator
|
noexcept |
Sent publishes - The MQTT quality of service level this message should be delivered with.
Received publishes - The MQTT quality of service level this message was delivered at.
See MQTT5 QoS
|
noexcept |
Opaque topic string intended to assist with request/response implementations. Not internally meaningful to MQTT5 or this client.
|
noexcept |
True if this is a retained message, false otherwise.
Always set on received publishes.
See MQTT5 Retain
|
noexcept |
Sent publishes - ignored
Received publishes - the subscription identifiers of all the subscriptions this message matched.
See MQTT5 Subscription Identifier
|
noexcept |
Sent publishes - The topic this message should be published to.
Received publishes - The topic this message was published to.
See MQTT5 Topic Name
|
noexcept |
Sent publishes - Topic alias to use, if possible, when encoding this packet. Only used if the client's outbound topic aliasing mode is set to Manual.
Received publishes - topic alias used by the server when transmitting the publish to the client.
|
inlineoverridevirtual |
Implements Aws::Crt::Mqtt5::IPacket.
|
noexcept |
|
noexcept |
|
delete |
|
deletenoexcept |
|
noexcept |
Sets the property specifying the content type of the payload. Not internally meaningful to MQTT5.
| contentType | The property specifying the content type of the payload. |
|
noexcept |
Sets the opaque binary data used to correlate between publish messages, as a potential method for request-response implementation. Not internally meaningful to MQTT5.
| correlationData | Opaque binary data used to correlate between publish messages |
|
noexcept |
Sets the maximum amount of time allowed to elapse for message delivery before the server should instead delete the message (relative to a recipient).
See MQTT5 Message Expiry Interval
| second | The maximum amount of time allowed to elapse for message delivery before the server should instead delete the message (relative to a recipient). |
|
noexcept |
Sets the payload for the publish message.
| payload | The payload for the publish message. |
|
noexcept |
Sets the property specifying the format of the payload data. The mqtt5 client does not enforce or use this value in a meaningful way.
See MQTT5 Payload Format Indicator
| payloadFormat | Property specifying the format of the payload data |
|
noexcept |
Sets the MQTT quality of service level the message should be delivered with.
See MQTT5 QoS
| packetQOS | The MQTT quality of service level the message should be delivered with. |
|
noexcept |
Sets the opaque topic string intended to assist with request/response implementations. Not internally meaningful to MQTT5 or this client.
| responseTopic |
|
noexcept |
Sets if this should be a retained message.
See MQTT5 Retain
| retain | if this is a retained message. |
|
noexcept |
Sets the topic this message should be published to. See MQTT5 Topic Name
| topic | The topic this message should be published to. |
|
noexcept |
Sets the opic alias to use, if possible, when encoding this packet. Only used if the client's outbound topic aliasing mode is set to Manual.
|
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. |