1#ifndef Arduino_ESP8266_Updater_h
2#define Arduino_ESP8266_Updater_h
7#if defined(ESP8266) && defined(ARDUINO)
15class Arduino_ESP8266_Updater :
public IUpdater {
17 ~Arduino_ESP8266_Updater()
override;
19 bool begin(
size_t const & firmware_size)
override;
21 size_t write(
uint8_t * payload,
size_t const & total_bytes)
override;
23 void reset()
override;
Updater interface that contains the method that a class that can be used to flash given binary data o...
Definition: IUpdater.h:14
virtual size_t write(uint8_t *payload, size_t const &total_bytes)=0
Writes the given amount of bytes of the packet data.
virtual bool begin(size_t const &firmware_size)=0
Initalizes the writing of the given data.
virtual void reset()=0
Resets the writing of the given data so it can be restarted with begin.
virtual bool end()=0
Ends the update and returns wheter it was successfully completed.