1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-04-29 14:13:11 +00:00

Add telecommand_enabled parameter, it defaults to false

This commit is contained in:
Carles Fernandez 2018-12-11 10:36:15 +01:00
parent e2582586b9
commit 58922251f7
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
3 changed files with 9 additions and 5 deletions

View File

@ -197,9 +197,13 @@ ControlThread::~ControlThread()
void ControlThread::telecommand_listener() void ControlThread::telecommand_listener()
{ {
int tcp_cmd_port = configuration_->property("GNSS-SDR.telecontrol_tcp_port", 3333); bool telecommand_enabled = configuration_->property("GNSS-SDR.telecommand_enabled", false);
if (telecommand_enabled)
{
int tcp_cmd_port = configuration_->property("GNSS-SDR.telecommand_tcp_port", 3333);
cmd_interface_.run_cmd_server(tcp_cmd_port); cmd_interface_.run_cmd_server(tcp_cmd_port);
} }
}
/* /*

View File

@ -1,7 +1,7 @@
/*! /*!
* \file tcp_cmd_interface.cc * \file tcp_cmd_interface.cc
* *
* \brief Class that implements a TCP telecontrol command line interface * \brief Class that implements a TCP/IP telecommand command line interface
* for GNSS-SDR * for GNSS-SDR
* \author Javier Arribas jarribas (at) cttc.es * \author Javier Arribas jarribas (at) cttc.es
* ------------------------------------------------------------------------- * -------------------------------------------------------------------------

View File

@ -1,7 +1,7 @@
/*! /*!
* \file tcp_cmd_interface.h * \file tcp_cmd_interface.h
* *
* \brief Class that implements a TCP telecontrol command line interface * \brief Class that implements a TCP/IP telecommand command line interface
* for GNSS-SDR * for GNSS-SDR
* \author Javier Arribas jarribas (at) cttc.es * \author Javier Arribas jarribas (at) cttc.es
* ------------------------------------------------------------------------- * -------------------------------------------------------------------------