Anjay Lite
|
Macros | |
#define | ANJ_COAP_DOWNLOADER_ERR_INVALID_URI -1 |
#define | ANJ_COAP_DOWNLOADER_ERR_IN_PROGRESS -2 |
#define | ANJ_COAP_DOWNLOADER_ERR_INVALID_CONFIGURATION -3 |
#define | ANJ_COAP_DOWNLOADER_ERR_TERMINATED -4 |
#define | ANJ_COAP_DOWNLOADER_ERR_NETWORK -5 |
#define | ANJ_COAP_DOWNLOADER_ERR_INVALID_RESPONSE -6 |
#define | ANJ_COAP_DOWNLOADER_ERR_TIMEOUT -7 |
#define | ANJ_COAP_DOWNLOADER_ERR_INTERNAL -8 |
#define | ANJ_COAP_DOWNLOADER_ERR_ETAG_MISMATCH -9 |
Error values that may be returned from various callbacks and API of CoAP downloader module.
#define ANJ_COAP_DOWNLOADER_ERR_ETAG_MISMATCH -9 |
Error code returned by anj_coap_downloader_get_error when the ETag value in the server response does not match the expected value.
It indicates that resource expired.
#define ANJ_COAP_DOWNLOADER_ERR_IN_PROGRESS -2 |
Error code returned by anj_coap_downloader_start when a download operation is already in progress.
To start a new download, you must first terminate the ongoing one using anj_coap_downloader_terminate, or wait until the current download completes.
#define ANJ_COAP_DOWNLOADER_ERR_INTERNAL -8 |
Error code returned by anj_coap_downloader_get_error or by anj_coap_downloader_init when an internal error occurred within the CoAP downloader module.
This may indicate a bug or unexpected condition that prevented the download from completing successfully.
#define ANJ_COAP_DOWNLOADER_ERR_INVALID_CONFIGURATION -3 |
Error code returned by anj_coap_downloader_init when the provided configuration is invalid or by anj_coap_downloader_start when the URI indicates CoAPs, and no net_config
is provided.
#define ANJ_COAP_DOWNLOADER_ERR_INVALID_RESPONSE -6 |
Error code returned by anj_coap_downloader_get_error when the server response was invalid or unexpected.
#define ANJ_COAP_DOWNLOADER_ERR_INVALID_URI -1 |
Error code returned by anj_coap_downloader_start and anj_coap_downloader_get_error when the provided URI is invalid.
This error indicates that the URI format is incorrect or unsupported.
#define ANJ_COAP_DOWNLOADER_ERR_NETWORK -5 |
Error code returned by anj_coap_downloader_get_error when a network-related issue occurred during the download process.
This may indicate a connection failure, unreachable server, or other transport-layer error that prevented successful communication.
#define ANJ_COAP_DOWNLOADER_ERR_TERMINATED -4 |
Error code returned by anj_coap_downloader_get_error when the download process was explicitly terminated by the user.
#define ANJ_COAP_DOWNLOADER_ERR_TIMEOUT -7 |
Error code returned by anj_coap_downloader_get_error when the response from the server was not received within the expected time window.