Function anjay_attr_storage_set_object_attrs
Defined in File attr_storage.h
Function Documentation
-
int anjay_attr_storage_set_object_attrs(anjay_t *anjay, anjay_ssid_t ssid, anjay_oid_t oid, const anjay_dm_oi_attributes_t *attrs)
Sets Object level attributes for the specified
ssid.NOTE: This function will fail if the object has object_read_default_attrs or object_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.
attrs – Attributes to be set (MUST NOT be NULL).
- Returns:
0 on success, negative value in case of an error.