diff options
author | Maksym Telychko <maksym.telychko@globallogic.com> | 2019-08-05 19:05:47 +0300 |
---|---|---|
committer | Maksym Telychko <maksym.telychko@globallogic.com> | 2019-08-05 19:05:47 +0300 |
commit | dde61cb74828054f00518ca3b931f0b20009cc79 (patch) | |
tree | 90074e1ac63ac355a34ed4b007f4df5adef8d00f /src/MTS_IO_TelitRadio.cpp | |
parent | e8412ebb27c8ff995795951d609377b003c8d6b1 (diff) | |
download | libmts-io-dde61cb74828054f00518ca3b931f0b20009cc79.tar.gz libmts-io-dde61cb74828054f00518ca3b931f0b20009cc79.tar.bz2 libmts-io-dde61cb74828054f00518ca3b931f0b20009cc79.zip |
MTX-2898 mpower 2-3-4g: quectel methods for set-cellular-mode and common methods for get-cellular-mode
Diffstat (limited to 'src/MTS_IO_TelitRadio.cpp')
-rw-r--r-- | src/MTS_IO_TelitRadio.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/MTS_IO_TelitRadio.cpp b/src/MTS_IO_TelitRadio.cpp index c04b47a..7e74ca6 100644 --- a/src/MTS_IO_TelitRadio.cpp +++ b/src/MTS_IO_TelitRadio.cpp @@ -682,23 +682,6 @@ ICellularRadio::CODE TelitRadio::getSupportedCellularModes(CELLULAR_MODES &netwo return SUCCESS; } -ICellularRadio::CODE TelitRadio::getCellularMode(CELLULAR_MODES &networks) { - networks = CELLULAR_MODE_NA; - std::string sCmd("AT+WS46?"); - std::string cmdResult = sendCommand(sCmd); - if (cmdResult.find("+WS46:") == std::string::npos) { - printDebug("%s| AT+WS46? returned unexpected response: [%s][%s]", getName().c_str(), sCmd.c_str(), cmdResult.c_str()); - return FAILURE; - } - int wds; - size_t cursor; - if (MTS::Text::parse(wds, MTS::Text::trim(MTS::Text::getLine(MTS::Text::split(cmdResult, ':')[1], 0, cursor)))) { - networks = preferredNetwork(networks, wds); - return SUCCESS; - } - return FAILURE; -} - ICellularRadio::CODE TelitRadio::setCellularMode(CELLULAR_MODES networks) { int wds = 0; // 3GPP TS 27.007 |