aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
MqttShared.h
Go to the documentation of this file.
1 
5 #pragma once
6 
11 #include <aws/crt/Types.h>
12 #include <aws/mqtt/mqtt.h>
13 
14 namespace Aws
15 {
16  namespace Crt
17  {
18  namespace Mqtt
19  {
24  struct IoTDeviceSDKMetrics
25  {
26  String LibraryName;
27 
28  IoTDeviceSDKMetrics() { LibraryName = "IoTDeviceSDK/CPP"; }
29 
30  void initializeRawOptions(struct aws_mqtt_iot_metrics &raw_options) noexcept
31  {
32  raw_options.library_name = ByteCursorFromString(LibraryName);
33  }
34  };
35  } // namespace Mqtt
36  } // namespace Crt
37 } // namespace Aws
38 
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
Definition: Allocator.h:10