aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Loading...
Searching...
No Matches
MqttShared.h
Go to the documentation of this file.
1
5#pragma once
11#include <aws/crt/Types.h>
12
13namespace Aws
14{
15 namespace Crt
16 {
17 namespace Mqtt
18 {
24 {
25 String LibraryName;
26
27 IoTDeviceSDKMetrics() { LibraryName = "IoTDeviceSDK/CPP"; }
28
29 void initializeRawOptions(aws_mqtt_iot_metrics &raw_options) noexcept
30 {
31 raw_options.library_name = ByteCursorFromString(LibraryName);
32 }
33 };
34 } // namespace Mqtt
35 } // namespace Crt
36} // namespace Aws
37
std::basic_string< char, std::char_traits< char >, StlAllocator< char > > String
Definition Types.h:45
AWS_CRT_CPP_API ByteCursor ByteCursorFromString(const Crt::String &str) noexcept
Definition Types.cpp:53
std::unique_ptr< T, std::function< void(T *)> > ScopedResource
Definition Types.h:163
Definition Allocator.h:11