AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <MqttClient.h>
Public Member Functions | |
MqttClient (Io::ClientBootstrap &bootstrap, Allocator *allocator=ApiAllocator()) noexcept | |
MqttClient (Allocator *allocator=ApiAllocator()) noexcept | |
~MqttClient () | |
MqttClient (const MqttClient &)=delete | |
MqttClient (MqttClient &&) noexcept | |
MqttClient & | operator= (const MqttClient &)=delete |
MqttClient & | operator= (MqttClient &&) noexcept |
operator bool () const noexcept | |
int | LastError () const noexcept |
std::shared_ptr< MqttConnection > | NewConnection (const char *hostName, uint32_t port, const Io::SocketOptions &socketOptions, const Crt::Io::TlsContext &tlsContext, bool useWebsocket=false) noexcept |
std::shared_ptr< MqttConnection > | NewConnection (const char *hostName, uint32_t port, const Io::SocketOptions &socketOptions, bool useWebsocket=false) noexcept |
An MQTT client. This is a move-only type. Unless otherwise specified, all function arguments need only to live through the duration of the function call.
|
noexcept |
Initialize an MqttClient using bootstrap and allocator
|
noexcept |
Initialize an MqttClient using a allocator and the default ClientBootstrap
For more information on the default ClientBootstrap see Aws::Crt::ApiHandle::GetOrCreateStaticDefaultClientBootstrap
Aws::Crt::Mqtt::MqttClient::~MqttClient | ( | ) |
|
delete |
|
noexcept |
|
noexcept |
|
noexcept |
Create a new connection object over plain text from the client. The client must outlive all of its connection instances.
hostName | endpoint to connect to |
port | port to connect to |
socketOptions | socket options to use when establishing the connection |
useWebsocket | should the connection use websockets or should it use direct mqtt? |
|
noexcept |
Create a new connection object using TLS from the client. The client must outlive all of its connection instances.
hostName | endpoint to connect to |
port | port to connect to |
socketOptions | socket options to use when establishing the connection |
tlsContext | tls context to use with the connection |
useWebsocket | should the connection use websockets or should it use direct mqtt? |
|
noexcept |
|
delete |
|
noexcept |