22 virtual bool begin(
size_t const & firmware_size) = 0;
28 virtual size_t write(
uint8_t * payload,
size_t const & total_bytes) = 0;
35 virtual bool end() = 0;
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 ~IUpdater()
Virtual default destructor, created to ensure that if a pointer to this class is used and deleted,...
Definition: IUpdater.h:17
virtual bool end()=0
Ends the update and returns wheter it was successfully completed.