mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 11:19:24 +08:00
新增http、mqtt运行库,实现mqtt功能, 新增spdlog
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
|
||||
#include <thread>
|
||||
|
||||
#include "common/Logger.h"
|
||||
#include "Operator.h"
|
||||
#include "app/AppData.h"
|
||||
|
||||
class MqttClient;
|
||||
|
||||
class Application
|
||||
{
|
||||
public:
|
||||
@@ -17,24 +18,25 @@ public:
|
||||
|
||||
static AppData& data()
|
||||
{
|
||||
return Application::instance().appdata_;
|
||||
return Application::instance().appdata;
|
||||
}
|
||||
|
||||
void init();
|
||||
|
||||
bool isQuit() { return isQuit_; }
|
||||
Operator& getOperator() { return op_; }
|
||||
Operator& getOperator() { return op; }
|
||||
|
||||
void runThreadMain();
|
||||
|
||||
void runThreadDevice();
|
||||
|
||||
public:
|
||||
bool isQuit_ = false;
|
||||
bool isQuit = false;
|
||||
|
||||
// 登录的管理员信息
|
||||
Operator op_;
|
||||
Operator op;
|
||||
|
||||
// 应用数据
|
||||
AppData appdata_;
|
||||
AppData appdata;
|
||||
|
||||
std::shared_ptr<MqttClient> mqttCli;
|
||||
};
|
||||
Reference in New Issue
Block a user