18#define GOLIOTH_FW_UPDATE_DEFAULT_PACKAGE_NAME "main"
enum golioth_status fw_update_validate(void)
void fw_update_rollback(void)
Initiate a firmware rollback.
void fw_update_post_download(void)
void golioth_fw_update_init_with_config(struct golioth_client *client, const struct golioth_fw_update_config *config)
void(* golioth_fw_update_state_change_callback)(enum golioth_ota_state state, enum golioth_ota_reason reason, void *user_arg)
void golioth_fw_update_register_state_change_callback(golioth_fw_update_state_change_callback callback, void *user_arg)
enum golioth_status fw_update_handle_block(const uint8_t *block, size_t block_size, size_t offset, size_t total_size)
void fw_update_cancel_rollback(void)
bool fw_update_is_pending_verify(void)
void fw_update_reboot(void)
void golioth_fw_update_init(struct golioth_client *client, const char *current_version)
enum golioth_status fw_update_change_boot_image(void)
golioth_ota_state
State of OTA update, reported to Golioth server.
golioth_ota_reason
A reason associated with state changes.
const char * fw_package_name
const char * current_version
The current firmware version, NULL-terminated, shallow-copied from user. (e.g. "1....