Add new remote command:

- hosts: display connected hosts, or NONE if disconnected (surrounded with double quotes).
Increase buffer size, for reply string, from 100 to 1024.
This commit is contained in:
Daniel Caujolle-Bert
2022-01-21 10:51:41 +00:00
parent e0adf4328b
commit a30ae3af4d
6 changed files with 48 additions and 2 deletions

View File

@@ -151,6 +151,14 @@ REMOTE_COMMAND CRemoteControl::getCommand()
}
m_command = RCD_CONNECTION_STATUS;
} else if (m_args.at(0U) == "hosts") {
if (m_host != NULL) {
m_host->buildNetworkHostsString(replyStr);
} else {
replyStr = "KO";
}
m_command = RCD_CONFIG_HOSTS;
} else {
replyStr = "KO";
}