AdvancedPayloadParser.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * AdvancedPayloadParser.h
8  *
9  * Created: 2021 - Slavey Karadzhov <slav@attachix.com>
10  *
11  ****/
12 
13 #pragma once
14 
15 #include "PayloadParser.h"
16 #include <OtaUpgradeStream.h>
17 
18 namespace OtaUpgrade
19 {
20 namespace Mqtt
21 {
27 {
28 public:
30 
31  bool switchRom(const UpdateState& updateState) override;
32 
33  ReadWriteStream* getStorageStream(size_t storageSize) override;
34 };
35 
36 } // namespace Mqtt
37 } // namespace OtaUpgrade
Definition: AdvancedPayloadParser.h:27
bool switchRom(const UpdateState &updateState) override
This method is responsible for switching the rom. This method is NOT restarting the system....
ReadWriteStream * getStorageStream(size_t storageSize) override
Creates new stream to store the firmware update.
Definition: PayloadParser.h:31
PayloadParser(size_t currentPatchVersion, size_t allowedVersionBytes=24)
Definition: PayloadParser.h:44
Base class for read/write stream.
Definition: ReadWriteStream.h:20
Definition: BasicStream.h:24
Definition: PayloadParser.h:33