diff options
author | Andrii Pientsov <andrii.pientsov@globallogic.com> | 2020-02-17 17:05:22 +0200 |
---|---|---|
committer | Andrii Pientsov <andrii.pientsov@globallogic.com> | 2020-02-17 17:05:22 +0200 |
commit | a19364df47f14bff07f8f1ade616fe147f910838 (patch) | |
tree | d5d27a332d6ddf68a694260876a6ba4b5ad40337 /include/mts/MTS_IO_ME910C1WWRadio.h | |
parent | f3425f9f5b32060895b7cd33d337b7ac50f9e714 (diff) | |
download | libmts-io-a19364df47f14bff07f8f1ade616fe147f910838.tar.gz libmts-io-a19364df47f14bff07f8f1ade616fe147f910838.tar.bz2 libmts-io-a19364df47f14bff07f8f1ade616fe147f910838.zip |
MTX-3211 Remove the code that is used to support ME910C1-NV and ME910C1-NA
Diffstat (limited to 'include/mts/MTS_IO_ME910C1WWRadio.h')
-rw-r--r-- | include/mts/MTS_IO_ME910C1WWRadio.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_ME910C1WWRadio.h b/include/mts/MTS_IO_ME910C1WWRadio.h index d45d86a..9605862 100644 --- a/include/mts/MTS_IO_ME910C1WWRadio.h +++ b/include/mts/MTS_IO_ME910C1WWRadio.h @@ -36,10 +36,33 @@ namespace MTS { ICellularRadio::CODE setActiveFirmware(const Json::Value& jArgs); ICellularRadio::CODE getActiveFirmware(std::string& sFwId); + virtual CODE updateFumo(const Json::Value& jArgs, UpdateCb& stepCb); + protected: + CODE doGetFirmwareNumbers(std::string &sFirmware, std::string &sFirmwareBuild); + private: + static const std::string KEY_FUMO_PDPID; //!< PDP context id (default 3) + static const std::string KEY_FUMO_PDPTYPE; //!< PDP context type (default IPV4V6) + static const std::string KEY_FUMO_APN; //!< APN (default empty) + static const std::string KEY_FUMO_ADDRESS; //!< FTP server address + static const std::string KEY_FUMO_DIR; //!< Directory + static const std::string KEY_FUMO_FILE; //!< Name of the upgrade file + static const std::string KEY_FUMO_USER; //!< Username + static const std::string KEY_FUMO_PASSWORD; //!< Password + static const std::string KEY_FUMO_DRYRUN; //!< If set, do not apply the downloaded firmware + + CODE doFumoPerform(const Json::Value &jConfig, UpdateCb& stepCb); + CODE doFumoReadConfig(const Json::Value& jArgs, Json::Value &jConfig); + CODE doFumoSetup(const Json::Value &jConfig, UpdateCb& stepCb); + CODE doFumoFtp(const Json::Value &jConfig, UpdateCb& stepCb); + CODE doFumoCleanup(const Json::Value &jConfig, UpdateCb& stepCb); + CODE doFumoApplyFirmware(const Json::Value &jConfig, UpdateCb& stepCb); + CODE doFumoWaitNewFirmware(const Json::Value &jConfig, UpdateCb& stepCb); + std::string m_sFw; + std::string m_sFwBuild; }; } } |