![]() |
ThingsBoard Client SDK 0.16.0
Client SDK to connect with ThingsBoard IoT Platform from IoT devices (Arduino, Espressif, etc.)
|
Updater interface that contains the method that a class that can be used to flash given binary data onto a device has to implement. More...
#include <IUpdater.h>
Public Member Functions | |
| virtual | ~IUpdater () |
| Virtual default destructor, created to ensure that if a pointer to this class is used and deleted, we will also call the derived base class destructor. More... | |
| virtual bool | begin (size_t const &firmware_size)=0 |
| Initalizes the writing of the given data. More... | |
| virtual size_t | write (uint8_t *payload, size_t const &total_bytes)=0 |
| Writes the given amount of bytes of the packet data. More... | |
| virtual void | reset ()=0 |
| Resets the writing of the given data so it can be restarted with begin. More... | |
| virtual bool | end ()=0 |
| Ends the update and returns wheter it was successfully completed. More... | |
Updater interface that contains the method that a class that can be used to flash given binary data onto a device has to implement.
|
inlinevirtual |
Virtual default destructor, created to ensure that if a pointer to this class is used and deleted, we will also call the derived base class destructor.
|
pure virtual |
Initalizes the writing of the given data.
| firmware_size | Total size of the data that should be written, is done in multiple packets |
Implemented in SDCard_Updater< Logger >.
|
pure virtual |
Ends the update and returns wheter it was successfully completed.
Implemented in SDCard_Updater< Logger >.
|
pure virtual |
Resets the writing of the given data so it can be restarted with begin.
Implemented in SDCard_Updater< Logger >.
Writes the given amount of bytes of the packet data.
| payload | Firmware packet data that should be written |
| total_bytes | Amount of bytes in the current firmware packet data |
Implemented in SDCard_Updater< Logger >.