Function anjay_advanced_fw_update_set_linked_instances

Function Documentation

int anjay_advanced_fw_update_set_linked_instances(anjay_t *anjay, anjay_iid_t iid, const anjay_iid_t *target_iids, size_t target_iids_count)

Sets linked instances resource of Advance Firmware Update object instance.

Linked instances mark instances that will be updated in a batch together when performing upgrade of a iid instance. See AVSystem specification of Advanced Firmware Update for details.

Parameters:
  • anjay – Anjay object to operate on.

  • iid – Instance ID of an Advanced Firmware Object.

  • target_iids – Points to array iids of linked 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.