Function anjay_notify_instances_changed
Defined in File dm.h
Function Documentation
-
int anjay_notify_instances_changed(anjay_t *anjay, anjay_oid_t oid)
Notifies the library that the set of Instances existing in a given Object changed. It may trigger a LwM2M Notify message, update server connections and perform other tasks, as required for the specified Object ID.
Needs to be called for each Object, after an Instance is created or removed by means other than LwM2M.
Note that it should not be called after a Create or Delete performed by the LwM2M server.
- Parameters:
anjay – Anjay object to operate on.
oid – Object ID of the changed Object.
- Returns:
0 on success, a negative value in case of error.