AWS IoT Device SDK C++ v2
1.34.0
AWS IoT Device SDK C++ v2
|
Go to the documentation of this file.
6 #include <aws/crt/Config.h>
16 using namespace Crt::Mqtt5;
20 class ClientBootstrap;
22 class TlsContextOptions;
23 class WebsocketConfig;
138 const char *certPath,
139 const char *pkeyPath,
206 const char *windowsCertStorePath,
334 Mqtt5ClientBuilder &WithConnectOptions(std::shared_ptr<ConnectPacket> packetConnect) noexcept;
398 uint64_t minConnectedTimeToResetReconnectDelayMs) noexcept;
465 std::shared_ptr<Mqtt5Client> Build() noexcept;
470 explicit operator
bool() const noexcept {
return m_lastError == 0; }
475 int LastError() const noexcept {
return m_lastError ? m_lastError : AWS_ERROR_UNKNOWN; }
581 std::shared_ptr<ConnectPacket> m_connectOptions;
588 bool m_enableMetricsCollection;
597 #endif // !BYO_CRYPTO
Definition: Mqtt5Client.h:123
AWS_CRT_CPP_API Allocator * ApiAllocator() noexcept
Definition: Allocator.cpp:24
Mqtt5CustomAuthConfig(Mqtt5CustomAuthConfig &&rhs)=delete
Mqtt5ClientBuilder(const Mqtt5ClientBuilder &)=delete
Definition: MqttCommon.h:24
Definition: Mqtt5Client.h:451
virtual ~Mqtt5ClientBuilder()
Definition: Mqtt5Client.h:477
Mqtt5ClientBuilder & operator=(Mqtt5ClientBuilder &&)=delete
Mqtt5CustomAuthConfig & operator=(Mqtt5CustomAuthConfig &&rhs)=delete
aws_mqtt5_extended_validation_and_flow_control_options ClientExtendedValidationAndFlowControl
Definition: Mqtt5Types.h:200
Definition: MqttCommon.h:105
Mqtt5ClientBuilder & WithMinConnectedTimeToResetReconnectDelayMs(uint64_t minConnectedTimeToResetReconnectDelayMs) noexcept
std::function< void(const PublishReceivedEventData &)> OnPublishReceivedHandler
Definition: Mqtt5Client.h:308
Definition: Mqtt5Client.h:33
Definition: TlsOptions.h:217
int LastError() const noexcept
Definition: Mqtt5Client.h:475
std::function< void(const OnAttemptingConnectEventData &)> OnAttemptingConnectHandler
Definition: Mqtt5Client.h:282
Definition: Mqtt5Client.h:101
Mqtt5ClientBuilder & operator=(const Mqtt5ClientBuilder &)=delete
std::function< void(const OnConnectionFailureEventData &)> OnConnectionFailureHandler
Definition: Mqtt5Client.h:271
std::function< void(const OnDisconnectionEventData &)> OnDisconnectionHandler
Definition: Mqtt5Client.h:276
Definition: HttpConnection.h:270
Mqtt5ClientBuilder(Mqtt5ClientBuilder &&)=delete
Definition: SocketOptions.h:48
aws_byte_buf ByteBuf
Definition: Types.h:30
#define AWS_CRT_CPP_API
Definition: Exports.h:37
Definition: Allocator.h:11
Definition: Mqtt5Client.h:145
aws_byte_cursor ByteCursor
Definition: Types.h:31
aws_allocator Allocator
Definition: Allocator.h:14
Definition: Bootstrap.h:35
aws_mqtt5_client_session_behavior_type ClientSessionBehaviorType
Definition: Mqtt5Types.h:186
std::function< void(const OnConnectionSuccessEventData &)> OnConnectionSuccessHandler
Definition: Mqtt5Client.h:266
std::function< void(const OnStoppedEventData &)> OnStoppedHandler
Definition: Mqtt5Client.h:288
std::basic_string< char, std::char_traits< char >, StlAllocator< char > > String
Definition: Types.h:45
aws_mqtt5_client_operation_queue_behavior_type ClientOperationQueueBehaviorType
Definition: Mqtt5Types.h:223