Function anj_dm_fw_update_object_set_download_result
Defined in File fw_update.h
Function Documentation
-
int anj_dm_fw_update_object_set_download_result(anj_t *anj, anj_dm_fw_update_entity_ctx_t *entity_ctx, anj_dm_fw_update_result_t result)
Sets the result of firmware download process in Pull mode.
For details on the expected usage of this function see description of anj_dm_fw_update_uri_write_t callback.
Warning
Calling this function in states other than ANJ_DM_FW_UPDATE_STATE_DOWNLOADING is an error.
- Parameters:
anj – Anjay object.
entity_ctx – Firmware Update Object state.
result – Result of the download process. If the process is successful, the value must be set to ANJ_DM_FW_UPDATE_RESULT_SUCCESS.
- Returns:
0 on success, a non-zero value in case of an error.