Add port to scanning devices

This commit is contained in:
2026-05-24 08:33:34 +10:00
parent a2fa2c8ceb
commit 47b80102a8
4 changed files with 55 additions and 17 deletions
+1
View File
@@ -3010,6 +3010,7 @@ static std::string DevicesToJson(const std::vector<ANSCENTER::ANSDeviceInfo>& de
j += "{\"ip\":\""; j += JsonEscape(devs[i].ip); j += "\",";
j += "\"name\":\""; j += JsonEscape(devs[i].name); j += "\",";
j += "\"firmware\":\""; j += JsonEscape(devs[i].firmware); j += "\",";
j += "\"port\":"; j += std::to_string(devs[i].port); j += ',';
j += "\"source\":"; j += std::to_string(devs[i].source);
j += '}';
}