mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-23 08:45:48 +08:00
Add RemoteCommand 'status' command.
As DMRGateway, it reports connection status. Command sent: "status" to port: 7642 dstar:n/a dmr:conn ysf:n/a p25:n/a nxdn:n/a fm:n/a RemoveCommand has been slighlty modified, as using Log on a read-only filesystem simply forbids the strings to be displayed. Another solution would be to set LogInitialisse's filePath to "/tmp/" for *nix systems.
This commit is contained in:
@@ -24,6 +24,8 @@
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
class CMMDVMHost;
|
||||
|
||||
enum REMOTE_COMMAND {
|
||||
RCD_NONE,
|
||||
RCD_MODE_IDLE,
|
||||
@@ -48,12 +50,13 @@ enum REMOTE_COMMAND {
|
||||
RCD_DISABLE_FM,
|
||||
RCD_PAGE,
|
||||
RCD_CW,
|
||||
RCD_RELOAD
|
||||
RCD_RELOAD,
|
||||
RCD_CONNECTION_STATUS
|
||||
};
|
||||
|
||||
class CRemoteControl {
|
||||
public:
|
||||
CRemoteControl(const std::string address, unsigned int port);
|
||||
CRemoteControl(class CMMDVMHost *host, const std::string address, unsigned int port);
|
||||
~CRemoteControl();
|
||||
|
||||
bool open();
|
||||
@@ -69,6 +72,7 @@ public:
|
||||
void close();
|
||||
|
||||
private:
|
||||
CMMDVMHost* m_host;
|
||||
CUDPSocket m_socket;
|
||||
REMOTE_COMMAND m_command;
|
||||
std::vector<std::string> m_args;
|
||||
|
||||
Reference in New Issue
Block a user