Friendly LWM2M client
FwUpdater.h
Go to the documentation of this file.
1 #ifndef WPP_FWPKGUPDATER_H
2 #define WPP_FWPKGUPDATER_H
3 
5 
6 namespace wpp {
7 
8 class FwUpdater {
9 public:
10  FwUpdater() = default;
11  virtual ~FwUpdater() = default;
12 
18  virtual void startUpdating() = 0;
19 
25  virtual bool isUpdated() = 0;
26 
35  virtual FwUpdRes lastUpdateResult() = 0;
36 
48  #if RES_5_6
49  virtual STRING_T pkgName() = 0;
50  #endif
51  #if RES_5_7
52  virtual STRING_T pkgVersion() = 0;
53  #endif
54 
61  virtual void reset() = 0;
62 };
63 
64 }
65 
66 #endif // WPP_FWPKGUPDATER_H
virtual void startUpdating()=0
Request to start updating the firmware. For notify that the update is completed, isUpdated() method s...
virtual FwUpdRes lastUpdateResult()=0
Contains the result of the last update process. This method is called whenever the FwExternalDl is re...
FwUpdater()=default
virtual void reset()=0
Returns the name and version of the last installed firmware package. These methods return the value o...
virtual ~FwUpdater()=default
virtual bool isUpdated()=0
Returns true if the update process is completed. For notify update result, lastUpdateResult() method ...
The WppConnection class represents a connection interface for the Wpp library.
Definition: WppClient.cpp:14
FwUpdRes
Definition: FwTypes.h:9
std::string STRING_T
Definition: WppTypes.h:45