void(* azure_fota_callback_t)(struct azure_fota_event *evt)
Callback to receive Azure FOTA events.
Definition azure_fota.h:60
int azure_fota_msg_process(const char *const buf, size_t size)
Process an Azure IoT Hub device twin JSON object, check for FOTA information and act accordingly if f...
azure_fota_evt_type
Definition azure_fota.h:25
@ AZURE_FOTA_EVT_DONE
Definition azure_fota.h:31
@ AZURE_FOTA_EVT_ERASE_PENDING
Definition azure_fota.h:35
@ AZURE_FOTA_EVT_ERROR
Definition azure_fota.h:33
@ AZURE_FOTA_EVT_ERASE_DONE
Definition azure_fota.h:37
@ AZURE_FOTA_EVT_REPORT
Definition azure_fota.h:27
@ AZURE_FOTA_EVT_START
Definition azure_fota.h:29
int azure_fota_init(azure_fota_callback_t evt_handler)
Initialize the Azure Firmware Over the Air library.
char * version
Definition azure_fota.h:51
enum azure_fota_evt_type type
Definition azure_fota.h:43
char * report
Definition azure_fota.h:49
Azure FOTA event.
Definition azure_fota.h:41