Function anjay_ipso_v2_basic_sensor_value_update
Defined in File ipso_objects_v2.h
Function Documentation
-
int anjay_ipso_v2_basic_sensor_value_update(anjay_t *anjay, anjay_oid_t oid, anjay_iid_t iid, double value)
Updates sensor value of basic IPSO object, and also minimum and maximum measured values.
This method should be called frequently if user needs LwM2M observations to behave responsively.
CAUTION: Do not call this method from interrupts.
- Parameters:
anjay – Anjay object with an installed basic IPSO object.
oid – Object ID of object instance of which the sensor value is updated.
iid – Instance ID of object instance of which the sensor value is updated.
value – New sensor value.
- Returns:
0 on success, or a negative value in case of error.