nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
azure_fota.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
11#ifndef AZURE_FOTA_H__
12#define AZURE_FOTA_H__
13
21#ifdef __cplusplus
22extern "C" {
23#endif
24
39
49 char *report;
50 /* Firmware version associated with the event. */
51 char *version;
52};
53
60typedef void (*azure_fota_callback_t)(struct azure_fota_event *evt);
61
70
81int azure_fota_msg_process(const char *const buf, size_t size);
82
83#ifdef __cplusplus
84}
85#endif
86
91#endif /* AZURE_FOTA_H__ */
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