Function anjay_attr_storage_set_resource_instance_attrs
Defined in File attr_storage.h
Function Documentation
-
int anjay_attr_storage_set_resource_instance_attrs(anjay_t *anjay, anjay_ssid_t ssid, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid, anjay_riid_t riid, const anjay_dm_r_attributes_t *attrs)
Sets Resource Instance level attributes for the specified
ssid.NOTE: This function will fail if the object has resource_read_attrs or resource_write_attrs handler implemented.
- Parameters:
anjay – Anjay object to operate on.
ssid – SSID for which given Attributes shall be set (must be a valid SSID corresponding to one of the non-Bootstrap LwM2M Servers).
oid – Object ID owning the specified Instance.
iid – Instance ID owning the specified Resource.
rid – Resource ID owning the specified Resource Instance.
riid – Resource Instance ID for which given Attributes shall be set.
attrs – Attributes to be set (MUST NOT be NULL).
- Returns:
0 on success, negative value in case of an error.