AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
#include <Mqtt5Client.h>
Friends | |
class | Mqtt5ClientCore |
class | Mqtt5to3AdapterOptions |
Configuration interface for mqtt5 clients
|
noexcept |
Default constructior of Mqtt5ClientOptions
|
virtual |
|
delete |
|
delete |
|
noexcept |
Initializes the C aws_mqtt5_client_options from Mqtt5ClientOptions. For internal use
raw_options | - output parameter containing low level client options to be passed to the C interface |
|
delete |
|
delete |
|
noexcept |
Sets Operation Timeout(Seconds). Time interval to wait for an ack after sending a QoS 1+ PUBLISH, SUBSCRIBE, or UNSUBSCRIBE before failing the operation.
ackTimeoutSec |
|
noexcept |
Mqtt5ClientOptions::WithAckTimeoutSec(uint32_t)
Sets Operation Timeout(Seconds). Time interval to wait for an ack after sending a QoS 1+ PUBLISH, SUBSCRIBE, or UNSUBSCRIBE before failing the operation.
ackTimeoutSec |
|
noexcept |
Set booststrap for mqtt5 client
bootStrap | bootstrap used for mqtt5 client. The default ClientBootstrap see Aws::Crt::ApiHandle::GetOrCreateStaticDefaultClientBootstrap. |
|
noexcept |
Sets callback trigged when client begins an attempt to connect to the remote endpoint.
callback |
|
noexcept |
Sets callback trigged when client fails to establish an MQTT connection
callback |
|
noexcept |
Sets callback trigged when client successfully establishes an MQTT connection
callback |
|
noexcept |
Sets callback trigged when client's current MQTT connection is closed
callback |
|
noexcept |
Sets client extended validation and flow control, additional controls for client behavior with respect to operation validation and flow control; these checks go beyond the base MQTT5 spec to respect limits of specific MQTT brokers.
clientExtendedValidationAndFlowControl |
|
noexcept |
Sets callback trigged when client reaches the "Stopped" state
callback |
|
noexcept |
Sets Connack Timeout (ms). Time interval to wait after sending a CONNECT request for a CONNACK to arrive. If one does not arrive, the connection will be shut down.
connackTimeoutMs |
|
noexcept |
Sets mqtt5 connection options
connectPacket | package connection options |
Mqtt5ClientOptions & Aws::Crt::Mqtt5::Mqtt5ClientOptions::WithHostName | ( | Crt::String | hostname | ) |
Sets host to connect to.
hostname | endpoint to connect to |
|
noexcept |
Sets http proxy options.
proxyOptions | http proxy configuration for connection establishment |
|
noexcept |
Sets OfflineQueueBehavior, controls how disconnects affect the queued and in-progress operations tracked by the client. Also controls how new operations are handled while the client is not connected. In particular, if the client is not connected, then any operation that would be failed on disconnect (according to these rules) will also be rejected.
offlineQueueBehavior |
|
noexcept |
Sets ping timeout (ms). Time interval to wait after sending a PINGREQ for a PINGRESP to arrive. If one does not arrive, the client will close the current connection.
pingTimeoutMs |
|
noexcept |
Set port to connect to
port | port to connect to |
|
noexcept |
Sets callback trigged when a PUBLISH packet is received by the client
callback |
|
noexcept |
Sets ReconnectOptions. Reconnect options, includes retryJitterMode, min reconnect delay time and max reconnect delay time and reset reconnect delay time
reconnectOptions |
|
noexcept |
Sets session behavior. Overrides how the MQTT5 client should behave with respect to MQTT sessions.
sessionBehavior |
|
noexcept |
Sets the aws socket options
socketOptions | Io::SocketOptions used to setup socket |
|
noexcept |
Sets the tls connection options
tslOptions | Io::TlsConnectionOptions |
|
noexcept |
Sets the topic aliasing behavior for the client.
topicAliasingOptions | topic aliasing behavior options to use |
|
noexcept |
Sets callback for transform HTTP request. This callback allows a custom transformation of the HTTP request that acts as the websocket handshake. Websockets will be used if this is set to a valid transformation callback. To use websockets but not perform a transformation, just set this as a trivial completion callback. If undefined, the connection will be made with direct MQTT.
callback |
|
friend |
|
friend |