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#include <aws/mqtt/mqtt.h>
13
14namespace Aws
15{
16 namespace Crt
17 {
18 namespace Mqtt
19 {
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
std::unique_ptr< T, std::function< void(T *)> > ScopedResource
Definition Types.h:163
Definition Allocator.h:11