You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

36 lines
688 B

#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fstream>
#include <iostream>
#include <nlohmann/json.hpp>
namespace iflytop {
using namespace std;
using namespace nlohmann;
class MQTTConfig {
private:
json m_mqttConfigJson;
string m_address;
string m_username;
string m_password;
string m_clientid;
int m_qos;
string m_topic;
int m_timeout;
public:
MQTTConfig(/* args */){};
~MQTTConfig(){};
void initialize(string file_name);
string dump();
string getAddress();
string getUsername();
string getPassword();
string getClientid();
int getQos();
string getTopic();
int getTimeout();
};
} // namespace iflytop