Function anj_dm_fw_update_object_set_update_result

Function Documentation

void anj_dm_fw_update_object_set_update_result(anj_t *anj, anj_dm_fw_update_entity_ctx_t *entity_ctx, anj_dm_fw_update_result_t result)

Sets the result of upgrade process.

For details on the expected usage of this function see description of anj_dm_fw_update_update_start_t callback.

Warning

This function MUST NOT be called in states other than ANJ_DM_FW_UPDATE_STATE_IDLE or ANJ_DM_FW_UPDATE_STATE_UPDATING. Calling this function in other states is an undefined behavior.

Parameters:
  • anj – Anjay object.

  • entity_ctx – Firmware Update Object state.

  • result – Result of the upgrade process. If the process is successful, the value must be set to ANJ_DM_FW_UPDATE_RESULT_SUCCESS.