mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
修改运行监控场站及设备信息查询接口
This commit is contained in:
@@ -98,8 +98,8 @@ public:
|
||||
std::shared_ptr<Device> getDevice(int deviceId);
|
||||
|
||||
void getDeviceByType(int typeId, std::vector<std::shared_ptr<Device>>& res);
|
||||
int getDeviceNumByGroup(std::string name);
|
||||
void getDeviceByGroup(std::string name, std::vector<std::shared_ptr<Device>>& res);
|
||||
int getDeviceNumByGroup(int category);
|
||||
void getDeviceByGroup(int category, std::vector<std::shared_ptr<Device>>& res);
|
||||
|
||||
void setWorkMode(int modeId);
|
||||
void setPolicy(int policyId);
|
||||
@@ -169,8 +169,8 @@ public:
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// === 设备信息 ===
|
||||
std::unordered_map<int, std::shared_ptr<Device>> mapDevice;
|
||||
std::map<int, std::vector<std::shared_ptr<Device>>> mapDeviceGroup;
|
||||
|
||||
std::map<std::string, int> mapDeviceGroupNum;
|
||||
|
||||
// 温湿度信息
|
||||
std::map<int, TempHumUnit> mapTempHumUnit;
|
||||
@@ -184,4 +184,6 @@ public:
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/// === MQTT client
|
||||
std::shared_ptr<MqttClient> mqttCli {nullptr};
|
||||
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user