summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsdesai <sdesai@multitech.com>2023-03-23 16:50:31 -0500
committersdesai <sdesai@multitech.com>2023-03-23 16:50:31 -0500
commita7c338b07cbdb706998ccead56673a3dd1cbdb0e (patch)
tree8fb73843b372a87a81ce28db2b371bcfb4279e35
parent91c623896442013d82f59e6e06e70523e9046b8c (diff)
downloadlibmts-io-a7c338b07cbdb706998ccead56673a3dd1cbdb0e.tar.gz
libmts-io-a7c338b07cbdb706998ccead56673a3dd1cbdb0e.tar.bz2
libmts-io-a7c338b07cbdb706998ccead56673a3dd1cbdb0e.zip
Support Portal Case #5086148: use Cellular Radio time as alternative to GPS or NTP
-rw-r--r--include/mts/MTS_IO_CellularRadio.h1
-rw-r--r--include/mts/MTS_IO_QuectelRadio.h1
-rw-r--r--include/mts/MTS_IO_TelitRadio.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_CellularRadio.h b/include/mts/MTS_IO_CellularRadio.h
index 555a5a7..c2aa346 100644
--- a/include/mts/MTS_IO_CellularRadio.h
+++ b/include/mts/MTS_IO_CellularRadio.h
@@ -277,6 +277,7 @@ namespace MTS {
* @return the list of AT commands (strings).
*/
virtual const std::vector<std::string>& getDiagCommands(bool bIsSimReady = true) = 0;
+
virtual CODE setTimeFormat() = 0;
class RadioBandMap : public MTS::NonCopyable {
diff --git a/include/mts/MTS_IO_QuectelRadio.h b/include/mts/MTS_IO_QuectelRadio.h
index 5f1d70c..b7796d9 100644
--- a/include/mts/MTS_IO_QuectelRadio.h
+++ b/include/mts/MTS_IO_QuectelRadio.h
@@ -93,6 +93,7 @@ namespace MTS {
const std::vector<std::string>& getDiagCommands(bool bIsSimReady = true) override;
CODE setTimeFormat() override;
+
private:
// private variable to save old firmware versions during FOTA
std::string m_sQuectelFirmware;
diff --git a/include/mts/MTS_IO_TelitRadio.h b/include/mts/MTS_IO_TelitRadio.h
index dc8ece8..305a764 100644
--- a/include/mts/MTS_IO_TelitRadio.h
+++ b/include/mts/MTS_IO_TelitRadio.h
@@ -81,6 +81,7 @@ namespace MTS {
static bool isContainsSignChar(const std::string& str);
CODE setTimeFormat() override;
+
private:
virtual CODE getSimLockAttempts(int& iAttemptsPin, int& iAttemptsPuk, const std::string& sLockStatus);
ICellularRadio::CODE wdsList(std::set<int> &wds);