summaryrefslogtreecommitdiff
path: root/src/MTS_IO_ME910Radio.cpp
diff options
context:
space:
mode:
authorJeff Hatch <jhatch@multitech.com>2020-07-22 08:25:08 -0500
committerJeff Hatch <jhatch@multitech.com>2020-07-22 08:25:08 -0500
commitd340135922da6eb881418824e470cbdba835b498 (patch)
tree90e162e6cf2c6a1d3b890a5483c9f77a000ced09 /src/MTS_IO_ME910Radio.cpp
parent343e662b6224cf03fea5ebfd419c7cf990528b53 (diff)
parentbeb3f36c5dcc70beed900859d6426dc74e4bccc8 (diff)
downloadlibmts-io-d340135922da6eb881418824e470cbdba835b498.tar.gz
libmts-io-d340135922da6eb881418824e470cbdba835b498.tar.bz2
libmts-io-d340135922da6eb881418824e470cbdba835b498.zip
Merge branch 'delta-radio-fwu' into 'master'
Delta Radio Firmware Upgrade support: LEU7 and L4E1 See merge request !30
Diffstat (limited to 'src/MTS_IO_ME910Radio.cpp')
-rw-r--r--src/MTS_IO_ME910Radio.cpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/MTS_IO_ME910Radio.cpp b/src/MTS_IO_ME910Radio.cpp
index 2b181d2..ad3e7ec 100644
--- a/src/MTS_IO_ME910Radio.cpp
+++ b/src/MTS_IO_ME910Radio.cpp
@@ -33,35 +33,3 @@ ME910Radio::ME910Radio(const std::string& sME910Model, const std::string& sPort)
ICellularRadio::CODE ME910Radio::setRxDiversity(const Json::Value& jArgs) {
return FAILURE;
}
-
-
-ICellularRadio::CODE ME910Radio::getFirmwareBuild(std::string& sFirmwareBuild) {
- std::string sCmd("AT#CFVR");
-
- std::string sResult = sendCommand(sCmd);
-
- size_t end = sResult.find(ICellularRadio::RSP_OK);
- if (end == std::string::npos) {
- printWarning("%s| Unable to get firmware build number [%s]",
- getName().c_str(),
- sCmd.c_str());
- return FAILURE;
- }
-
- size_t start = sResult.find("#CFVR:");
- if (start == std::string::npos) {
- printWarning("%s| Command returned unexpected response [%s]",
- getName().c_str(),
- sCmd.c_str());
- return FAILURE;
- }
-
- start += sizeof("#CFVR:");
-
- sFirmwareBuild = MTS::Text::trim(sResult.substr(start, end-start));
- if(sFirmwareBuild.size() == 0) {
- printWarning("%s| Firmware Build Version is empty", getName().c_str());
- return FAILURE;
- }
- return SUCCESS;
-}