mirror of
https://github.com/g4klx/DMRGateway.git
synced 2026-04-07 07:23:50 +00:00
Add new remote command:
- hosts: display connected hosts, or NONE if disconnected (surrounded with double quotes).
This commit is contained in:
parent
5aa6e54130
commit
6c36e29f88
6 changed files with 44 additions and 0 deletions
|
|
@ -111,6 +111,15 @@ 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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue