summaryrefslogtreecommitdiff
path: root/include/mts/MTS_IO_TelitRadio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mts/MTS_IO_TelitRadio.h')
-rw-r--r--include/mts/MTS_IO_TelitRadio.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/mts/MTS_IO_TelitRadio.h b/include/mts/MTS_IO_TelitRadio.h
index 07a95de..fdf8a20 100644
--- a/include/mts/MTS_IO_TelitRadio.h
+++ b/include/mts/MTS_IO_TelitRadio.h
@@ -66,7 +66,8 @@ namespace MTS {
};
virtual FOTA_GROUP getFotaGroup();
- virtual CODE uploadFile(int fd, UpdateCb& stepCb);
+ virtual CODE fumoWriteGroupsABD(int fd, UpdateCb& stepCb);
+ //virtual CODE fumoWriteGroupC(int fd, UpdateCb& stepCb);
private:
virtual CODE getSimLockAttempts(int& iAttemptsPin, int& iAttemptsPuk, const std::string& sLockStatus);
@@ -75,20 +76,17 @@ namespace MTS {
// private variable to save old firmware versions during FOTA
std::string m_sTelitFirmware;
- static const size_t FILE_CHUNK_SIZE;
static const std::string CMD_ABORT_UPLOAD;
CODE getTelitFirmware(std::string& sFirmware);
- CODE startFileUpload();
- CODE abortFileUpload();
+ CODE startWrite();
+ CODE abortWrite();
static inline void callNextStep(UpdateCb& stepCb, const char* csMessage);
static inline void callNextStep(UpdateCb& stepCb, const std::string& sMessage);
- static CODE getFileSize(int fd, size_t& nBytes, size_t& nFileChunks);
- static CODE readChunk(int fd, char* pChunk, size_t dChunkSize, size_t& nReadBytes);
- CODE fumoWaitRadioBooted(UpdateCb& stepCb);
+ CODE fumoWaitUpgradeFinished(UpdateCb& stepCb);
CODE fumoCheckNewFirmware(UpdateCb& stepCb);
};