mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-05 06:25:24 +00:00
Use MQTT for the remote command handling.
This commit is contained in:
parent
0615a4218d
commit
1afe34f514
11 changed files with 132 additions and 353 deletions
15
Conf.cpp
15
Conf.cpp
|
|
@ -303,9 +303,7 @@ m_ax25NetworkSpeed(9600U),
|
|||
m_ax25NetworkDebug(false),
|
||||
m_lockFileEnabled(false),
|
||||
m_lockFileName(),
|
||||
m_remoteControlEnabled(false),
|
||||
m_remoteControlAddress("127.0.0.1"),
|
||||
m_remoteControlPort(0U)
|
||||
m_remoteControlEnabled(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
@ -1031,8 +1029,6 @@ bool CConf::read()
|
|||
} else if (section == SECTION_REMOTE_CONTROL) {
|
||||
if (::strcmp(key, "Enable") == 0)
|
||||
m_remoteControlEnabled = ::atoi(value) == 1;
|
||||
else if (::strcmp(key, "Port") == 0)
|
||||
m_remoteControlPort = (unsigned short)::atoi(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -2251,12 +2247,3 @@ bool CConf::getRemoteControlEnabled() const
|
|||
return m_remoteControlEnabled;
|
||||
}
|
||||
|
||||
std::string CConf::getRemoteControlAddress() const
|
||||
{
|
||||
return m_remoteControlAddress;
|
||||
}
|
||||
|
||||
unsigned short CConf::getRemoteControlPort() const
|
||||
{
|
||||
return m_remoteControlPort;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue