AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <MqttClient.h>
Public Member Functions | |
MqttClient (Crt::Io::ClientBootstrap &bootstrap, Crt::Allocator *allocator=Crt::ApiAllocator()) noexcept | |
MqttClient (Crt::Allocator *allocator=Crt::ApiAllocator()) noexcept | |
std::shared_ptr< Crt::Mqtt::MqttConnection > | NewConnection (const MqttClientConnectionConfig &config) noexcept |
int | LastError () const noexcept |
operator bool () const noexcept | |
AWS IOT specific Mqtt Client. Sets defaults for using the AWS IOT service. You'll need an instance of MqttClientConnectionConfig to use. Once NewConnection returns, you use it's return value identically to how you would use Aws::Crt::Mqtt::MqttConnection
|
noexcept |
|
noexcept |
Constructs a new Mqtt Client object using the static default ClientBootstrap.
For more information on the default ClientBootstrap see Aws::Crt::ApiHandle::GetOrCreateDefaultClientBootstrap
|
inlinenoexcept |
|
noexcept |
Creates a new mqtt connection from a connection configuration object
config | mqtt connection configuration |
|
inlineexplicitnoexcept |