aws-crt-cpp
|
#include <MqttClient.h>
Represents configuration parameters for building a MqttClientConnectionConfig object. You can use a single instance of this class PER MqttClientConnectionConfig you want to generate. If you want to generate a config for a different endpoint or port etc... you need a new instance of this class.
Aws::Iot::MqttClientConnectionConfigBuilder::MqttClientConnectionConfigBuilder | ( | ) |
|
noexcept |
Sets the builder up for MTLS using certPath and pkeyPath. These are files on disk and must be in the PEM format.
|
noexcept |
Sets the builder up for MTLS using cert and pkey. These are in-memory buffers and must be in the PEM format.
|
noexcept |
Sets the builder up for Websocket connection.
|
noexcept |
Builds a client configuration object from the set options.
|
inlinenoexcept |
|
inlineexplicitnoexcept |
|
noexcept |
Sets the certificate authority for the endpoint you're connecting to. This is a path to a file on disk and must be in PEM format.
|
noexcept |
Sets the certificate authority for the endpoint you're connecting to. This is an in-memory buffer and must be in PEM format.
MqttClientConnectionConfigBuilder & Aws::Iot::MqttClientConnectionConfigBuilder::WithEndpoint | ( | const Crt::String & | endpoint | ) |
Sets endpoint to connect to.
MqttClientConnectionConfigBuilder & Aws::Iot::MqttClientConnectionConfigBuilder::WithEndpoint | ( | Crt::String && | endpoint | ) |
Sets endpoint to connect to.
|
noexcept |
Overrides the default port. By default, if ALPN is supported, 443 will be used. Otherwise 8883 will be used. If you specify 443 and ALPN is not supported, we will still attempt to connect over 443 without ALPN.
|
noexcept |
TCP option: Sets the connect timeout. Defaults to 3 seconds.
|
noexcept |
TCP option: Enables TCP keep alive. Defaults to off.
|
noexcept |
TCP option: Sets the frequency of sending keep alive probes in seconds once the keep alive timeout expires. Defaults to kernel defaults.
|
noexcept |
TCP option: Sets the amount of keep alive probes allowed to fail before the connection is terminated. Defaults to kernel defaults.
|
noexcept |
TCP option: Sets time before keep alive probes are sent. Defaults to kernel defaults