|
@@ -1385,6 +1385,11 @@ void DemoProtocol::unpack_bridge_data(memepp::string_view data)
|
|
// 将剩下的内容转换为json
|
|
// 将剩下的内容转换为json
|
|
nlohmann::json jsonObj = nlohmann::json::parse(jsonStr);
|
|
nlohmann::json jsonObj = nlohmann::json::parse(jsonStr);
|
|
for (const auto& entry : jsonObj.items()) {
|
|
for (const auto& entry : jsonObj.items()) {
|
|
|
|
+ auto value = jsonObj[entry.key()].get<std::string>();
|
|
|
|
+ if (!value.empty())
|
|
|
|
+ {
|
|
|
|
+ value = removeBraces(value);
|
|
|
|
+ }
|
|
point_bridge_map_[entry.key()] = jsonObj[entry.key()].get<std::string>();
|
|
point_bridge_map_[entry.key()] = jsonObj[entry.key()].get<std::string>();
|
|
cmnproto_log_debug(m_handle.native(), "bridge data: %s = %s", entry.key().c_str(), entry.value().get<std::string>().c_str());
|
|
cmnproto_log_debug(m_handle.native(), "bridge data: %s = %s", entry.key().c_str(), entry.value().get<std::string>().c_str());
|
|
}
|
|
}
|