ThingsBoard Client SDK 0.16.0
Client SDK to connect with ThingsBoard IoT Platform from IoT devices (Arduino, Espressif, etc.)
Loading...
Searching...
No Matches
Enumerations
OTA_Failure_Response.h File Reference
#include <stdint.h>
Include dependency graph for OTA_Failure_Response.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  OTA_Failure_Response : uint8_t { RETRY_CHUNK , RETRY_UPDATE , RETRY_NOTHING }
 Possible responses to error states the OTA update might fall into. More...
 

Enumeration Type Documentation

◆ OTA_Failure_Response

enum class OTA_Failure_Response : uint8_t
strong

Possible responses to error states the OTA update might fall into.

Note
Allows to react to certain issues in the most appropriate way, because some of them require us to restart the complete update, whereas other issues can be solved if we simply attempt to refetch the current chunk
Enumerator
RETRY_CHUNK 

Fetching the current chunk failed somehow, but we can still continue the update we just have to refetch the current chunk, mainly occurs from timeouts with requesting the chunks.

RETRY_UPDATE 

Internal process failed in the OTA that makes the complete already downloaded data not recoverable anymore, hashing or writing to flash memory failed, requires to restart the update from the first chunk and reinitalize the needed components.

RETRY_NOTHING 

Initally passed arguments are invalid and would cause crashes or the update was forcefully stopped by the user, therefore we immediately stop the update and do not restart it.