Function anjay_ipso_v2_3d_sensor_value_update
Defined in File ipso_objects_v2.h
Function Documentation
-
int anjay_ipso_v2_3d_sensor_value_update(anjay_t *anjay, anjay_oid_t oid, anjay_iid_t iid, const anjay_ipso_v2_3d_sensor_value_t *value)
Updates sensor value of three-axis IPSO object.
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 three-axis 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.