21#ifndef ZEPHYR_INCLUDE_MGMT_HAWKBIT_HAWKBIT_H_
22#define ZEPHYR_INCLUDE_MGMT_HAWKBIT_HAWKBIT_H_
71 const size_t buffer_size);
void hawkbit_reboot(void)
Request system to reboot.
int hawkbit_init(void)
Init the flash partition.
bool(* hawkbit_get_device_identity_cb_handler_t)(char *id, int id_max_len)
Callback to get the device identity.
Definition hawkbit.h:112
int hawkbit_reset_action_id(void)
Resets the hawkBit action id, that is saved in settings.
int(* hawkbit_config_device_data_cb_handler_t)(const char *device_id, uint8_t *buffer, const size_t buffer_size)
Callback to provide the custom data to the hawkBit server.
Definition hawkbit.h:70
int hawkbit_set_device_identity_cb(hawkbit_get_device_identity_cb_handler_t cb)
Set the device identity callback.
enum hawkbit_response hawkbit_probe(void)
The hawkBit probe verify if there is some update to be performed.
hawkbit_response
Response message from hawkBit.
Definition hawkbit.h:34
int hawkbit_set_custom_data_cb(hawkbit_config_device_data_cb_handler_t cb)
Set the custom data callback.
@ HAWKBIT_PERMISSION_ERROR
fail to get the permission to access the hawkBit server
Definition hawkbit.h:46
@ HAWKBIT_PROBE_IN_PROGRESS
probe is currently running
Definition hawkbit.h:56
@ HAWKBIT_METADATA_ERROR
fail to parse or to encode the metadata
Definition hawkbit.h:48
@ HAWKBIT_NETWORKING_ERROR
fail to connect to the hawkBit server
Definition hawkbit.h:42
@ HAWKBIT_UPDATE_INSTALLED
an update was installed.
Definition hawkbit.h:38
@ HAWKBIT_NO_RESPONSE
matching events were not received within the specified time
Definition hawkbit.h:36
@ HAWKBIT_NOT_INITIALIZED
hawkBit is not initialized
Definition hawkbit.h:54
@ HAWKBIT_NO_UPDATE
no update was available
Definition hawkbit.h:40
@ HAWKBIT_ALLOC_ERROR
fail to allocate memory
Definition hawkbit.h:52
@ HAWKBIT_UNCONFIRMED_IMAGE
image is unconfirmed
Definition hawkbit.h:44
@ HAWKBIT_DOWNLOAD_ERROR
fail while downloading the update package
Definition hawkbit.h:50
#define bool
Definition stdbool.h:13
__UINT8_TYPE__ uint8_t
Definition stdint.h:88