|
aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
|
#include <MqttClient.h>
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? |
| enableMetrics | enable AWS IoT metrics collection. Default to true. |
| sdkMetrics | optional custom SDK metrics to include in the MQTT CONNECT packet. If not provided, default metrics will be used when enableMetrics is true. |
|
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? |
| enableMetrics | enable AWS IoT metrics collection. Default to true. |
| sdkMetrics | optional custom SDK metrics to include in the MQTT CONNECT packet. If not provided, default metrics will be used when enableMetrics is true. |
|
noexcept |
|
delete |
|
noexcept |