diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2019-06-12 13:37:45 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2019-06-12 13:37:45 +0300 |
commit | 2f451104dc4a5b3459ecf4ffade49efa55e2c454 (patch) | |
tree | 0390e9dee48b90bdad4f1355ebeeeb99ff5f09b5 | |
parent | 5649cebb23edc7ef20456e76b959e4a217a08594 (diff) | |
download | libmts-io-2f451104dc4a5b3459ecf4ffade49efa55e2c454.tar.gz libmts-io-2f451104dc4a5b3459ecf4ffade49efa55e2c454.tar.bz2 libmts-io-2f451104dc4a5b3459ecf4ffade49efa55e2c454.zip |
[MTS-MTQ] QuectelRadio implementation
Corrected the check for QENG="servingcell" prefix
-rw-r--r-- | src/MTS_IO_QuectelRadio.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MTS_IO_QuectelRadio.cpp b/src/MTS_IO_QuectelRadio.cpp index 3f108e6..414cd98 100644 --- a/src/MTS_IO_QuectelRadio.cpp +++ b/src/MTS_IO_QuectelRadio.cpp @@ -228,7 +228,7 @@ CellularRadio::CODE QuectelRadio::getNetworkStatus(Json::Value& jData) { sCmd = "AT+QENG=\"servingcell\""; sResult = sendCommand(sCmd, DEFAULT_BAIL_STRINGS, 200); - if (sResult.find("+QENG:\"servingscell\"") == std::string::npos) { + if (sResult.find("+QENG: \"servingcell\"") == std::string::npos) { printDebug("%s| Network Status command returned unexpected response: [%s][%s]", getName().c_str(), sCmd.c_str(), sResult.c_str()); printTrace("%s| Network Status:\n%s\n", getName().c_str(), jData.toStyledString().c_str()); return SUCCESS; //return SUCCESS because getCommonNetworkStats() succeeded at top of this function |