mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-07 07:23:53 +00:00
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:
parent
e0adf4328b
commit
a30ae3af4d
6 changed files with 48 additions and 2 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue