SOIL C++
C++ Unified Device Interface
Configuration.h
Go to the documentation of this file.
1#pragma once
2#include <string>
3#include "constants.h"
4
5namespace MQTT
6{
13 class DLL Configuration
14 {
15 public:
22 std::string host;
23
30 int port;
31
39 std::string username;
40
47 std::string password;
48
56
64 std::string root;
65
73
82
91
99 bool ssl;
100
107 bool verify;
108
117
124 std::string path;
125
134
141
149 Configuration(std::string filename);
150
157
164 std::string uri();
165 };
166}
MQTT publishing configuration.
Definition: Configuration.h:14
std::string root
MQTT root topic.
Definition: Configuration.h:64
std::string host
Hostname of the MQTT broker.
Definition: Configuration.h:22
int min_delay_ms
Minimum delay between to messages in milliseconds.
Definition: Configuration.h:81
int keep_alive
Keep alive interval in seconds.
Definition: Configuration.h:72
bool ssl
Use secured connection.
Definition: Configuration.h:99
bool clean_session
Clean session flag.
Definition: Configuration.h:55
int port
Port of the MQTT broker.
Definition: Configuration.h:30
std::string password
Password for connecting to the MQTT broker.
Definition: Configuration.h:47
std::string certificate_authority
Path to CA PEM-file.
bool verify
Skip SSL verification.
bool websocket
Use websocket protocol.
int connection_timeout_s
Connection timeout in seconds.
Definition: Configuration.h:90
std::string path
Websocket path.
std::string username
Username for connecting to the MQTT broker.
Definition: Configuration.h:39