Function anjay_attr_storage_set_instance_attrs
Defined in File attr_storage.h
Function Documentation
-
int anjay_attr_storage_set_instance_attrs(anjay_t *anjay, anjay_ssid_t ssid, anjay_oid_t oid, anjay_iid_t iid, const anjay_dm_oi_attributes_t *attrs)
Sets Instance level attributes for the specified
ssid.NOTE: This function will fail if the object has instance_read_default_attrs or instance_write_default_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 for which given Attributes shall be set.
iid – 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.