新增台区电表(新设备类型)数据解析

This commit is contained in:
lixiaoyuan
2026-01-09 17:17:09 +08:00
parent e278ae1003
commit 81dcd390ef
20 changed files with 130 additions and 2200 deletions

View File

@@ -307,8 +307,11 @@ static map<int, map<string, string>> g_mapAddrValStr =
void Device::getRuntimeParams(std::vector<std::pair<std::string, std::string>>& params)
{
if (type == int(EDeviceType::E_METER_TD))
{
}
auto& vecAddr = REGAddr::s_mapDeviceAddrParam[this->type];
for (auto& item: vecAddr)
for (auto& item : vecAddr)
{
std::string v = getParam(item.addr, item.defaultVal);
auto& mapValStr = REGAddr::g_mapRegAddrValStr[type][item.addr];
@@ -317,7 +320,7 @@ void Device::getRuntimeParams(std::vector<std::pair<std::string, std::string>>&
{
v = iter->second;
}
params.push_back({item.name, v + item.unit});
params.push_back({ item.name, v + item.unit });
}
}