|
AWS IoT Device SDK C++ v2 1.44.2
AWS IoT Device SDK C++ v2
|
#include <Mqtt5Client.h>
Public Member Functions | |
| PublishReceivedEventData () | |
Public Attributes | |
| std::shared_ptr< PublishPacket > | publishPacket |
| std::function< ScopedResource< PublishAcknowledgementHandle >()> | acquirePublishAcknowledgement |
The data returned when a publish is made to a topic the MQTT5 client is subscribed to.
|
inline |
| std::function<ScopedResource<PublishAcknowledgementHandle>()> Aws::Crt::Mqtt5::PublishReceivedEventData::acquirePublishAcknowledgement |
Call this function within the OnPublishReceivedHandler callback to take manual control of the publish acknowledgement for this QoS 1 message, preventing the client from automatically sending a publish acknowledgement.
Returns a ScopedResource to a PublishAcknowledgementHandle that can be passed to Mqtt5Client::InvokePublishAcknowledgement() to send the publish acknowledgement to the broker.
| std::shared_ptr<PublishPacket> Aws::Crt::Mqtt5::PublishReceivedEventData::publishPacket |