Anjay Lite
Loading...
Searching...
No Matches
CoAP downloader error codes.

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
 

Detailed Description

Error values that may be returned from various callbacks and API of CoAP downloader module.

Macro Definition Documentation

◆ ANJ_COAP_DOWNLOADER_ERR_ETAG_MISMATCH

#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.

◆ ANJ_COAP_DOWNLOADER_ERR_IN_PROGRESS

#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.

◆ ANJ_COAP_DOWNLOADER_ERR_INTERNAL

#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.

◆ ANJ_COAP_DOWNLOADER_ERR_INVALID_CONFIGURATION

#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.

◆ ANJ_COAP_DOWNLOADER_ERR_INVALID_RESPONSE

#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.

◆ ANJ_COAP_DOWNLOADER_ERR_INVALID_URI

#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.

◆ ANJ_COAP_DOWNLOADER_ERR_NETWORK

#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.

◆ ANJ_COAP_DOWNLOADER_ERR_TERMINATED

#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.

◆ ANJ_COAP_DOWNLOADER_ERR_TIMEOUT

#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.