Function anjay_advanced_fw_update_set_conflicting_instances
Defined in File advanced_fw_update.h
Function Documentation
-
int anjay_advanced_fw_update_set_conflicting_instances(anjay_t *anjay, anjay_iid_t iid, const anjay_iid_t *target_iids, size_t target_iids_count)
Sets conflicting instances resource of Advance Firmware Update object instance.
When the download or update fails and the Update Result resource is set to ANJAY_ADVANCED_FW_UPDATE_RESULT_CONFLICTING_STATE or ANJAY_ADVANCED_FW_UPDATE_RESULT_DEPENDENCY_ERROR this resource MUST be present and contain references to the Advanced Firmware Update object instances that caused the conflict. See LwM2M specification for details.
- Parameters:
anjay – Anjay object to operate on.
iid – Instance ID of an Advanced Firmware Object.
target_iids – Points to array iids of conflicting instances in relation to Advanced Firmware Update object instance
iid. NOTE: Only already added instances only of Advanced Firmware Update object are allowed.target_iids_count – Count of target iids in an array.
- Returns:
0 on success, or a negative value in case of error.