Function anjay_lwm2m_gateway_notify_instances_changed
Defined in File lwm2m_gateway.h
Function Documentation
-
int anjay_lwm2m_gateway_notify_instances_changed(anjay_t *anjay, anjay_iid_t end_dev, 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.
end_dev – End Device Instance ID.
oid – Object ID of the changed Object.
- Returns:
0 on success, a negative value in case of error.