mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
修改运行监控场站及设备信息查询接口
This commit is contained in:
@@ -16,13 +16,13 @@ public:
|
||||
int type = -1;
|
||||
std::string name;
|
||||
std::string code;
|
||||
std::string group;
|
||||
int category;
|
||||
bool isOpen = false;
|
||||
std::string attrsJson = "";
|
||||
|
||||
int err = 0;
|
||||
int online = 0;
|
||||
int status = 0;
|
||||
int running = 0;
|
||||
|
||||
//std::map<std::string, std::string> mapAttrs;
|
||||
Fields attrs;
|
||||
@@ -37,10 +37,16 @@ public:
|
||||
|
||||
|
||||
int64_t tsDataDate {};
|
||||
std::map<int, double> mapCacheData;
|
||||
std::map<int, double> mapCacheVoltage;
|
||||
std::map<int, double> mapCacheCurrent;
|
||||
std::map<int, double> mapCachePower;
|
||||
|
||||
// 启动通讯
|
||||
int startComm();
|
||||
void getRuntimeParams(std::vector<std::pair<std::string, std::string>>& params);
|
||||
void getCacheVoltage(std::vector<std::string>& vec);
|
||||
void getCacheCurrent(std::vector<std::string>& vec);
|
||||
void getCachePower(std::vector<std::string>& vec);
|
||||
|
||||
static std::shared_ptr<Device> create(Fields& fields);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user