Function anjay_lwm2m_gateway_notify_changed
Defined in File lwm2m_gateway.h
Function Documentation
-
int anjay_lwm2m_gateway_notify_changed(anjay_t *anjay, anjay_iid_t end_dev, anjay_oid_t oid, anjay_iid_t iid, anjay_rid_t rid)
Notifies the library that the value of given Resource changed. It may trigger a LwM2M Notify message, update server connections and perform other tasks, as required for the specified Resource.
Needs to be called for any Resource after its value is changed by means other than LwM2M.
Note that it should not be called after a Write performed by the LwM2M server.
- Parameters:
anjay – Anjay object to operate on.
end_dev – End Device Instance ID.
oid – Object ID of the changed Resource.
iid – Object Instance ID of the changed Resource.
rid – Resource ID of the changed Resource.
- Returns:
0 on success, a negative value in case of error.