mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
修改运行监控场站及设备信息查询接口
This commit is contained in:
@@ -10,8 +10,8 @@ static std::map<std::string, std::map<std::string, REGInfo>> g_mapRegInfo;
|
||||
|
||||
void MqttClient::loadDataStruct(std::string filename)
|
||||
{
|
||||
NJsonNode json;
|
||||
NJson::load(filename, json);
|
||||
njson json;
|
||||
JSON::load(filename, json);
|
||||
|
||||
// 遍历 JSON 对象
|
||||
for (auto& jsonitem : json.items())
|
||||
@@ -321,6 +321,6 @@ void MqttClient::parseTQ(std::string& text) {};
|
||||
|
||||
string MQTT::packEquipmentInfo()
|
||||
{
|
||||
NJsonNode jsonroot;
|
||||
njson jsonroot;
|
||||
return jsonroot.dump();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user