OtaUpgrade::Mqtt::StandardPayloadParser Class Reference
This parser allows the processing of firmware data that is directly stored to the flash memory using RbootOutputStream. More...
#include <StandardPayloadParser.h>
Inheritance diagram for OtaUpgrade::Mqtt::StandardPayloadParser:
Collaboration diagram for OtaUpgrade::Mqtt::StandardPayloadParser:
Public Member Functions | |
StandardPayloadParser (Storage::Partition part, size_t currentVersion, size_t allowedVersionBytes=24) | |
bool | switchRom (const UpdateState &updateState) override |
This method is responsible for switching the rom. This method is NOT restarting the system. It will happen lated in the parse method. More... | |
ReadWriteStream * | getStorageStream (size_t storageSize) override |
Creates new stream to store the firmware update. More... | |
Public Member Functions inherited from OtaUpgrade::Mqtt::PayloadParser | |
PayloadParser (size_t currentPatchVersion, size_t allowedVersionBytes=24) | |
virtual | ~PayloadParser () |
int | parse (MqttPayloadParserState &state, mqtt_message_t *message, const char *buffer, int length) |
This method takes care to read the incoming MQTT message and pass it to the stream that is responsoble for storing the data. More... | |
Detailed Description
This parser allows the processing of firmware data that is directly stored to the flash memory using RbootOutputStream.
Constructor & Destructor Documentation
◆ StandardPayloadParser()
|
inline |
Member Function Documentation
◆ getStorageStream()
|
overridevirtual |
Creates new stream to store the firmware update.
- Parameters
-
size_t storageSize the requested storage size
- Return values
-
ReadWriteStream*
Implements OtaUpgrade::Mqtt::PayloadParser.
◆ switchRom()
|
overridevirtual |
This method is responsible for switching the rom. This method is NOT restarting the system. It will happen lated in the parse method.
- Return values
-
true if the switch was successful
Implements OtaUpgrade::Mqtt::PayloadParser.
The documentation for this class was generated from the following file: