diff options
author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-05-28 15:55:00 +0300 |
---|---|---|
committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2020-05-30 11:39:58 +0300 |
commit | 9f5a4f138b56a0a1b4e5764a69261aa4a4edaa71 (patch) | |
tree | 458ac922e7cc2d3ff7cdaf975b742d69a6a2c5a6 /include | |
parent | 26f6e69e9d5c7049d42559259933482b35559889 (diff) | |
download | libmts-io-9f5a4f138b56a0a1b4e5764a69261aa4a4edaa71.tar.gz libmts-io-9f5a4f138b56a0a1b4e5764a69261aa4a4edaa71.tar.bz2 libmts-io-9f5a4f138b56a0a1b4e5764a69261aa4a4edaa71.zip |
Quectel Delta Radio Firmware Upgrade support - libmts-io implementation
Declared base interface and added started implementation for the QuectelRadio class.
Implemented file listing (file status check) and file removal logic.
Diffstat (limited to 'include')
-rw-r--r-- | include/mts/MTS_IO_QuectelRadio.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mts/MTS_IO_QuectelRadio.h b/include/mts/MTS_IO_QuectelRadio.h index df3b5b5..8aba437 100644 --- a/include/mts/MTS_IO_QuectelRadio.h +++ b/include/mts/MTS_IO_QuectelRadio.h @@ -42,6 +42,10 @@ namespace MTS { CODE setMdn(const Json::Value& jArgs) override; + CODE uploadDeltaFirmwareFile(int fd, UpdateCb& stepCb) override; + CODE removeDeltaFirmwareFile() override; + CODE applyDeltaFirmwareFile(UpdateCb& stepCb) override; + protected: QuectelRadio(const std::string& sName, const std::string& sRadioPort); @@ -51,7 +55,13 @@ namespace MTS { virtual CODE getServiceDomain(SERVICEDOMAIN& sd); virtual CODE convertToActiveBand(const std::string& sQuectelBand, ACTIVEBAND& band); + virtual CODE uploadFile(int fd, const std::string& sTargetFilename, UpdateCb& stepCb); + virtual CODE removeFile(const std::string& sTargetFilename); + virtual CODE checkFile(bool& bFilePresent, const std::string& sTargetFilename); + private: + static const std::string VALUE_MTS_DELTA_NAME; + static const std::string VALUE_MTS_DELTA_PATH; }; } |