ThingsBoard Client SDK 0.16.0
Client SDK to connect with ThingsBoard IoT Platform from IoT devices (Arduino, Espressif, etc.)
Loading...
Searching...
No Matches
Arduino_ESP32_Updater.h
Go to the documentation of this file.
1#ifndef Arduino_ESP32_Updater_h
2#define Arduino_ESP32_Updater_h
3
4// Local include.
5#include "Configuration.h"
6
7#if defined(ESP32) && defined(ARDUINO)
8
9// Local include.
10#include "IUpdater.h"
11
12
15class Arduino_ESP32_Updater : public IUpdater {
16 public:
17 ~Arduino_ESP32_Updater() override;
18
19 bool begin(size_t const & firmware_size) override;
20
21 size_t write(uint8_t * payload, size_t const & total_bytes) override;
22
23 void reset() override;
24
25 bool end() override;
26};
27
28#endif // defined(ESP32) && defined(ARDUINO)
29
30#endif // Arduino_ESP32_Updater_h
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.