Add P25 to JSON/MQTT.

This commit is contained in:
Jonathan Naylor
2023-01-17 15:11:40 +00:00
parent 82dab9a93f
commit 17c194c466
7 changed files with 137 additions and 13 deletions

View File

@@ -1258,8 +1258,10 @@ void CNXDNControl::writeJSON(nlohmann::json& json, const char* source, const cha
json["source"] = source;
json["action"] = action;
json["source_id"] = int(srcId);
json["source_info"] = srcInfo;
json["destination_id"] = int(dstId);
json["destination_type"] = grp ? "group" : "individual";
if (!srcInfo.empty())
json["source_info"] = srcInfo;
}