ThingsBoard Client SDK 0.16.0
Client SDK to connect with ThingsBoard IoT Platform from IoT devices (Arduino, Espressif, etc.)
Loading...
Searching...
No Matches
Classes | Variables
OTA_Handler.h File Reference
#include "Configuration.h"
#include "Callback_Watchdog.h"
#include "HashGenerator.h"
#include "OTA_Update_Callback.h"
#include "OTA_Failure_Response.h"
#include "Helper.h"
#include <string.h>
Include dependency graph for OTA_Handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  OTA_Handler< Logger >
 Handles the complete processing of received binary firmware data including writing the data into some kind of storage. More...
 

Variables

char constexpr FW_STATE_DOWNLOADING [] = "DOWNLOADING"
 
char constexpr FW_STATE_DOWNLOADED [] = "DOWNLOADED"
 
char constexpr FW_STATE_UPDATING [] = "UPDATING"
 
char constexpr FW_STATE_FAILED [] = "FAILED"
 
char constexpr FW_STATE_UPDATED [] = "UPDATED"
 
char constexpr OTA_CB_IS_NULL [] = "OTA update callback is NULL, has it been deleted"
 
char constexpr UNABLE_TO_REQUEST_CHUNCKS [] = "Unable to request firmware chunk"
 
char constexpr RECEIVED_UNEXPECTED_CHUNK [] = "Received chunk (%u), not the same as requested chunk (%u)"
 
char constexpr RECEIVED_UNEXPECTED_CHUNK_SIZE [] = "Received chunk size (%u), not the same as expected chunk size (%u)"
 
char constexpr ERROR_UPDATE_BEGIN [] = "Failed to initalize flash updater, ensure that the partition scheme has two app sections"
 
char constexpr ERROR_UPDATE_WRITE [] = "Only wrote (%u) bytes of binary data instead of expected (%u)"
 
char constexpr ERROR_UPDATE_END [] = "Error during flash updater not all bytes written"
 
char constexpr CHECKSUM_VERIFICATION_FAILED [] = "Calculated checksum (%s), not the same as expected checksum (%s)"
 
char constexpr FW_UPDATE_ABORTED [] = "Firmware update aborted"
 
char constexpr CHUNK_REQUEST_TIMED_OUT [] = "Failed to receive requested chunk (%u) in (%llu) us. Internet connection might have been lost"
 

Variable Documentation

◆ CHECKSUM_VERIFICATION_FAILED

char constexpr CHECKSUM_VERIFICATION_FAILED[] = "Calculated checksum (%s), not the same as expected checksum (%s)"
constexpr

◆ CHUNK_REQUEST_TIMED_OUT

char constexpr CHUNK_REQUEST_TIMED_OUT[] = "Failed to receive requested chunk (%u) in (%llu) us. Internet connection might have been lost"
constexpr

◆ ERROR_UPDATE_BEGIN

char constexpr ERROR_UPDATE_BEGIN[] = "Failed to initalize flash updater, ensure that the partition scheme has two app sections"
constexpr

◆ ERROR_UPDATE_END

char constexpr ERROR_UPDATE_END[] = "Error during flash updater not all bytes written"
constexpr

◆ ERROR_UPDATE_WRITE

char constexpr ERROR_UPDATE_WRITE[] = "Only wrote (%u) bytes of binary data instead of expected (%u)"
constexpr

◆ FW_STATE_DOWNLOADED

char constexpr FW_STATE_DOWNLOADED[] = "DOWNLOADED"
constexpr

◆ FW_STATE_DOWNLOADING

char constexpr FW_STATE_DOWNLOADING[] = "DOWNLOADING"
constexpr

◆ FW_STATE_FAILED

char constexpr FW_STATE_FAILED[] = "FAILED"
constexpr

◆ FW_STATE_UPDATED

char constexpr FW_STATE_UPDATED[] = "UPDATED"
constexpr

◆ FW_STATE_UPDATING

char constexpr FW_STATE_UPDATING[] = "UPDATING"
constexpr

◆ FW_UPDATE_ABORTED

char constexpr FW_UPDATE_ABORTED[] = "Firmware update aborted"
constexpr

◆ OTA_CB_IS_NULL

char constexpr OTA_CB_IS_NULL[] = "OTA update callback is NULL, has it been deleted"
constexpr

◆ RECEIVED_UNEXPECTED_CHUNK

char constexpr RECEIVED_UNEXPECTED_CHUNK[] = "Received chunk (%u), not the same as requested chunk (%u)"
constexpr

◆ RECEIVED_UNEXPECTED_CHUNK_SIZE

char constexpr RECEIVED_UNEXPECTED_CHUNK_SIZE[] = "Received chunk size (%u), not the same as expected chunk size (%u)"
constexpr

◆ UNABLE_TO_REQUEST_CHUNCKS

char constexpr UNABLE_TO_REQUEST_CHUNCKS[] = "Unable to request firmware chunk"
constexpr