7 #ifndef WPP_O_5_FIRMWARE_UPDATE_H
8 #define WPP_O_5_FIRMWARE_UPDATE_H
58 LAST_STATE_CHANGE_TIME_12 = 12,
61 MAXIMUM_DEFER_PERIOD_13 = 13,
160 void resourcesCreate();
165 void resourcesInit();
168 bool pkgUpdaterHandler();
170 void externalDownloaderHandler(
Instance *securityInst);
172 void internalDownloaderHandler();
176 void resetStateMachine();
177 void clearArtifacts();
181 bool isSchemeValid(
STRING_T scheme);
183 bool isSchemeSupported(
STRING_T scheme);
196 FwExternalDl *_externalDownloader;
void serverOperationNotifier(Instance *securityInst, ItemOp::TYPE type, const ResLink &resLink) override
This method must be implemented by the derived class, and handle information about resource operation...
static bool setFwExternalDownloader(WppClient &ctx, FwExternalDl &downloader)
Set the FwExternalDl object for downloading the firmware package from the specified URI.
void userOperationNotifier(ItemOp::TYPE type, const ResLink &resLink) override
This method must be implemented by the derived class, and handle information about resource operation...
static bool setFwInternalDownloader(WppClient &ctx, FwInternalDl &downloader)
Set the FwInternalDl object for auto downloading firmware.
static std::vector< FwUpdProtocol > supportedProtocols(WppClient &ctx)
Return the list of supported protocols for downloading the firmware through uri.
static bool setFwUpdater(WppClient &ctx, FwUpdater &updater)
Set the FwUpdater object for updating the firmware package.
FirmwareUpdate(lwm2m_context_t &context, const OBJ_LINK_T &id)
static FirmwareUpdate * instance(WppClient &ctx, ID_T instId=ID_T_MAX_VAL)
Gets an instance of the object.
static bool removeInst(WppClient &ctx, ID_T instId)
Removes an instance of the object.
static Object & object(WppClient &ctx)
Gets the Object reference.
static FirmwareUpdate * createInst(WppClient &ctx, ID_T instId=ID_T_MAX_VAL)
Creates an instance of the object.
@ FIRMWARE_UPDATE_DELIVERY_METHOD_9
@ FIRMWARE_UPDATE_PROTOCOL_SUPPORT_8
Instance is interface class that implements manipulation with derived class resources....
The Object class implements manipulation with Instance interface class and its inheritors.
Represents a client interface for Wpp library.
The WppConnection class represents a connection interface for the Wpp library.
TYPE
Enum representing the different types of operations.
ObjLink - (object ID):(instance ID), example: 1:3. Represent as two integers in lwm2m_data_t....