PayloadParser.h
Go to the documentation of this file.
80 int parse(MqttPayloadParserState& state, mqtt_message_t* message, const char* buffer, int length);
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 responsobl...
virtual ReadWriteStream * getStorageStream(size_t storageSize)=0
Creates new stream to store the firmware update.
virtual ~PayloadParser()
Definition: PayloadParser.h:53
Definition: AdvancedPayloadParser.h:18
virtual bool switchRom(const UpdateState &updateState)=0
This method is responsible for switching the rom. This method is NOT restarting the system...
Definition: MqttPayloadParser.h:29
constexpr int8_t ERROR_INVALID_PATCH_VERSION
Definition: PayloadParser.h:26
ReadWriteStream * stream
Definition: PayloadParser.h:33
PayloadParser(size_t currentPatchVersion, size_t allowedVersionBytes=24)
Definition: PayloadParser.h:48
Definition: PayloadParser.h:32
Definition: PayloadParser.h:29
constexpr int8_t ERROR_INVALID_MQTT_MESSAGE
Definition: PayloadParser.h:25
~UpdateState()
Definition: PayloadParser.h:37
constexpr int8_t ERROR_UNKNOWN_REASON
Definition: PayloadParser.h:27
1.8.13