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
+2
View File
@@ -25,6 +25,8 @@ namespace ANSCENTER {
std::string ip; // IPv4 address (dotted-decimal)
std::string name; // Device name from UDP probe, empty if HTTP-only
std::string firmware; // Version string ("-" if device did not report one)
int port{ 0 }; // TCP port the device's HTTP API answers on
// (AIBOX = 80, ANSVIS = 22211). 0 = unknown.
int source{ 0 }; // 1 = multicast, 2 = HTTP sweep, 3 = both
};