AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <Mqtt5Client.h>
Public Member Functions | |
std::shared_ptr< Mqtt5Client > | getptr () |
operator bool () const noexcept | |
int | LastError () const noexcept |
bool | Start () const noexcept |
bool | Stop () noexcept |
bool | Stop (std::shared_ptr< DisconnectPacket > disconnectPacket) noexcept |
bool | Publish (std::shared_ptr< PublishPacket > publishPacket, OnPublishCompletionHandler onPublishCompletionCallback=NULL) noexcept |
bool | Subscribe (std::shared_ptr< SubscribePacket > subscribePacket, OnSubscribeCompletionHandler onSubscribeCompletionCallback=NULL) noexcept |
bool | Unsubscribe (std::shared_ptr< UnsubscribePacket > unsubscribePacket, OnUnsubscribeCompletionHandler onUnsubscribeCompletionCallback=NULL) noexcept |
const Mqtt5ClientOperationStatistics & | GetOperationStatistics () noexcept |
virtual | ~Mqtt5Client () |
Static Public Member Functions | |
static std::shared_ptr< Mqtt5Client > | NewMqtt5Client (const Mqtt5ClientOptions &options, Allocator *allocator=ApiAllocator()) noexcept |
Friends | |
class | Mqtt::MqttConnection |
An MQTT5 client. This is a move-only type. Unless otherwise specified, all function arguments need only to live through the duration of the function call.
|
virtual |
|
noexcept |
Get the statistics about the current state of the client's queue of operations
|
inline |
Get shared poitner of the Mqtt5Client. Mqtt5Client is inherited to enable_shared_from_this to help with memory safety.
|
noexcept |
|
staticnoexcept |
Factory function for mqtt5 client
options | Mqtt5 Client Options |
allocator | allocator to use |
|
noexcept |
|
noexcept |
Tells the client to attempt to send a PUBLISH packet
publishPacket | packet PUBLISH to send to the server |
onPublishCompletionCallback | callback on publish complete, default to NULL |
|
noexcept |
Notifies the MQTT5 client that you want it to attempt to connect to the configured endpoint. The client will attempt to stay connected using the properties of the reconnect-related parameters from the client configuration.
|
noexcept |
Notifies the MQTT5 client that you want it to transition to the stopped state, disconnecting any existing connection and stopping subsequent reconnect attempts.
|
noexcept |
Notifies the MQTT5 client that you want it to transition to the stopped state, disconnecting any existing connection and stopping subsequent reconnect attempts.
disconnectPacket | (optional) properties of a DISCONNECT packet to send as part of the shutdown process |
|
noexcept |
Tells the client to attempt to subscribe to one or more topic filters.
subscribePacket | SUBSCRIBE packet to send to the server |
onSubscribeCompletionCallback | callback on subscribe complete, default to NULL |
|
noexcept |
Tells the client to attempt to unsubscribe to one or more topic filters.
unsubscribePacket | UNSUBSCRIBE packet to send to the server |
onUnsubscribeCompletionCallback | callback on unsubscribe complete, default to NULL |
|
friend |