#include <Mqtt5Packets.h>
PublishResult returned with onPublishCompletionCallback after Publish get called
Publish with QoS0: Ack will be nullptr QoS1: Ack will contains a PubAckPacket
◆ PublishResult() [1/5]
Aws::Crt::Mqtt5::PublishResult::PublishResult |
( |
| ) |
|
◆ PublishResult() [2/5]
Aws::Crt::Mqtt5::PublishResult::PublishResult |
( |
std::shared_ptr< PubAckPacket > |
puback | ) |
|
◆ PublishResult() [3/5]
Aws::Crt::Mqtt5::PublishResult::PublishResult |
( |
int |
errorCode | ) |
|
◆ ~PublishResult()
Aws::Crt::Mqtt5::PublishResult::~PublishResult |
( |
| ) |
|
|
noexcept |
◆ PublishResult() [4/5]
Aws::Crt::Mqtt5::PublishResult::PublishResult |
( |
const PublishResult & |
toCopy | ) |
|
|
deletenoexcept |
◆ PublishResult() [5/5]
Aws::Crt::Mqtt5::PublishResult::PublishResult |
( |
PublishResult && |
toMove | ) |
|
|
deletenoexcept |
◆ getAck()
std::shared_ptr<IPacket> Aws::Crt::Mqtt5::PublishResult::getAck |
( |
| ) |
const |
|
inline |
Get Publish ack packet
- Returns
- std::shared_ptr<IPacket> contains a PubAckPacket if client Publish with QoS1, otherwise nullptr.
◆ getErrorCode()
int Aws::Crt::Mqtt5::PublishResult::getErrorCode |
( |
| ) |
const |
|
inline |
Get the error code value
- Returns
- the error code
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ wasSuccessful()
bool Aws::Crt::Mqtt5::PublishResult::wasSuccessful |
( |
| ) |
const |
|
inline |
Get if the publish succeed or not
- Returns
- true if error code == 0 and publish succeed
The documentation for this class was generated from the following files: