nRF Connect SDK API 3.4.99
Loading...
Searching...
No Matches

Library for performing FOTA with MQTT and HTTP. More...

Data Structures

struct  aws_fota_event_dl
struct  aws_fota_event

Macros

#define AWS_FOTA_EVT_DL_COMPLETE_VAL   100

Typedefs

typedef void(* aws_fota_callback_t) (struct aws_fota_event *fota_evt)

Enumerations

enum  aws_fota_evt_id {
  AWS_FOTA_EVT_START , AWS_FOTA_EVT_DONE , AWS_FOTA_EVT_ERROR , AWS_FOTA_EVT_ERASE_PENDING ,
  AWS_FOTA_EVT_ERASE_DONE , AWS_FOTA_EVT_DL_PROGRESS
}
enum  aws_fota_error_cause {
  AWS_FOTA_ERROR_CAUSE_NO_ERROR = 0 , AWS_FOTA_ERROR_CAUSE_CONNECT_FAILED , AWS_FOTA_ERROR_CAUSE_DOWNLOAD_FAILED , AWS_FOTA_ERROR_CAUSE_INVALID_UPDATE ,
  AWS_FOTA_ERROR_CAUSE_TYPE_MISMATCH , AWS_FOTA_ERROR_CAUSE_INTERNAL , AWS_FOTA_ERROR_CAUSE_DFU , AWS_FOTA_ERROR_CAUSE_PROTO_NOT_SUPPORTED ,
  AWS_FOTA_ERROR_CAUSE_INVALID_CONFIGURATION , AWS_FOTA_ERROR_CAUSE_INVALID_JOB_DOCUMENT , AWS_FOTA_ERROR_CAUSE_URL_TOO_LONG , AWS_FOTA_ERROR_CAUSE_NO_SEC_TAG ,
  AWS_FOTA_ERROR_CAUSE_DOWNLOAD_START_FAILED , AWS_FOTA_ERROR_CAUSE_JOB_UPDATE_REJECTED , AWS_FOTA_ERROR_CAUSE_JOB_UPDATE_FAILED , AWS_FOTA_ERROR_CAUSE_PAYLOAD_TOO_LARGE ,
  AWS_FOTA_ERROR_CAUSE_UNKNOWN
}
 Cause of a failed FOTA job, reported with the AWS_FOTA_EVT_ERROR event. More...

Functions

int aws_fota_init (aws_fota_callback_t evt_handler)
 Initialize the AWS Firmware Over the Air library.
int aws_fota_mqtt_evt_handler (struct mqtt_client *const client, const struct mqtt_evt *evt)
 AWS Firmware over the air mqtt event handler.
int aws_fota_get_job_id (uint8_t *const job_id_buf, size_t buf_size)
 Get the null-terminated job id string.

Detailed Description

Library for performing FOTA with MQTT and HTTP.