summaryrefslogtreecommitdiff
path: root/src/MTS_IO_QuectelRadio.cpp
diff options
context:
space:
mode:
authormykola.salomatin <mykola.salomatin@globallogic.com>2021-04-15 20:47:36 +0300
committermykola.salomatin <mykola.salomatin@globallogic.com>2021-04-15 20:47:36 +0300
commit6cab1e29fc2031a76c87e49c3bcdd7c5db8f40dc (patch)
treebbb704819781eb1f57648adb4dde434376fc0018 /src/MTS_IO_QuectelRadio.cpp
parent67a991ff3d772d2f81cb9907e1a710a88436f7c7 (diff)
downloadlibmts-io-6cab1e29fc2031a76c87e49c3bcdd7c5db8f40dc.tar.gz
libmts-io-6cab1e29fc2031a76c87e49c3bcdd7c5db8f40dc.tar.bz2
libmts-io-6cab1e29fc2031a76c87e49c3bcdd7c5db8f40dc.zip
[MTX-3998] mPower R. Apr 2021: +CEMODE shall be set to CEMODE=2 - Quectel - GP-1111
Refactoring common functions, telit and quectel functions related to CEMODE switching
Diffstat (limited to 'src/MTS_IO_QuectelRadio.cpp')
-rw-r--r--src/MTS_IO_QuectelRadio.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp
index 4f20627..7d96627 100644
--- a/src/MTS_IO_QuectelRadio.cpp
+++ b/src/MTS_IO_QuectelRadio.cpp
@@ -1223,6 +1223,8 @@ ICellularRadio::CODE QuectelRadio::abortFileUpload() {
}
ICellularRadio::CODE QuectelRadio::setUeModeOfOperation(UE_MODES_OF_OPERATION mode) {
+ printTrace("%s| Set UE Mode Of Operation", getName().c_str());
+
std::string sDomain, sPreference;
switch (mode) {
@@ -1251,7 +1253,7 @@ ICellularRadio::CODE QuectelRadio::setUeModeOfOperation(UE_MODES_OF_OPERATION mo
sPreference = "01";
break;
default:
- printTrace("Set UE Mode Of Operation: invalid argument");
+ printError("%s| Set UE Mode Of Operation: invalid argument", getName().c_str());
return INVALID_ARGS;
}
@@ -1261,7 +1263,7 @@ ICellularRadio::CODE QuectelRadio::setUeModeOfOperation(UE_MODES_OF_OPERATION mo
rc = sendBasicCommand(sCommand, dTimeout);
if (rc != SUCCESS) {
- printError("Voice/data preference configuration failed with code [%d]", rc);
+ printError("%s| Voice/data preference configuration failed with code [%d]", getName().c_str(), rc);
return rc;
}
@@ -1269,7 +1271,7 @@ ICellularRadio::CODE QuectelRadio::setUeModeOfOperation(UE_MODES_OF_OPERATION mo
rc = sendBasicCommand(sCommand, dTimeout);
if (rc != SUCCESS) {
- printError("Service domain configuration failed with code [%d]", rc);
+ printError("%s| Service domain configuration failed with code [%d]", getName().c_str(), rc);
return rc;
}