summaryrefslogtreecommitdiff
path: root/src/MTS_IO_LE910Radio.cpp
diff options
context:
space:
mode:
authorYevhen Mykhno <yevhen.mykhno@globallogic.com>2023-01-31 13:26:34 +0200
committerJohn Klug <john.klug@multitech.com>2023-03-13 10:49:38 -0500
commita6f0f7e7b341d6ce29ad71ee534031e9d8e9630b (patch)
tree1679304e1b5858dfc092edaaaec9de7a0f3ed69b /src/MTS_IO_LE910Radio.cpp
parente661044a43345f7cac947c3bb6178a2c045028f6 (diff)
downloadlibmts-io-a6f0f7e7b341d6ce29ad71ee534031e9d8e9630b.tar.gz
libmts-io-a6f0f7e7b341d6ce29ad71ee534031e9d8e9630b.tar.bz2
libmts-io-a6f0f7e7b341d6ce29ad71ee534031e9d8e9630b.zip
[GP-1733] mPower R.6.3.X: L6G1 Support - libmts-io, radio-cmd, radio-query
- function getRegistrationCommands() implemented as pure virtual and overrided for every base radio model - minor indentation fixes - function getSimStatusSummary(Json::Value& jData) changed to process radio modems that do not have separate commands for the SIM presence check - function getManufacturer(std::string& sManufacturer) changed: AT command changet to 'AT+CGMI' - src/MTS_IO_QuectelRadio.cpp -- comments correction
Diffstat (limited to 'src/MTS_IO_LE910Radio.cpp')
-rw-r--r--src/MTS_IO_LE910Radio.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/MTS_IO_LE910Radio.cpp b/src/MTS_IO_LE910Radio.cpp
index 2f1debb..3b2864b 100644
--- a/src/MTS_IO_LE910Radio.cpp
+++ b/src/MTS_IO_LE910Radio.cpp
@@ -64,7 +64,7 @@ ICellularRadio::CODE LE910Radio::getModemLocation(std::string& sLocation) {
}
printDebug("modem reply: [%s]", sResult.c_str());
size_t start = sResult.find(':');
- if (start==std::string::npos){
+ if (start==std::string::npos) {
start = 0;
} else {
start++;
@@ -230,3 +230,7 @@ const std::vector<std::string>& LE910Radio::getDiagCommands(bool bIsSimReady) {
return vSimLockedCommands;
}
}
+
+const std::vector<std::string> LE910Radio::getRegistrationCommands() {
+ return { "CREG", "CGREG", "CEREG" };
+}