Function anjay_ipso_v2_3d_sensor_instance_add
Defined in File ipso_objects_v2.h
Function Documentation
-
int anjay_ipso_v2_3d_sensor_instance_add(anjay_t *anjay, anjay_oid_t oid, anjay_iid_t iid, const anjay_ipso_v2_3d_sensor_value_t *initial_value, const anjay_ipso_v2_3d_sensor_meta_t *meta)
Adds an instance of three-axis IPSO object. Requires the object to be installed first with anjay_ipso_v2_3d_sensor_install .
- Parameters:
anjay – Anjay object for which the instance is added.
oid – Object ID of added object instance.
iid – Instance ID of added object instance. Must be lower than number of
instance_countparameter passed to anjay_ipso_v2_3d_sensor_installinitial_value – Initial sensor value.
meta – Metadata about added object instance.
- Returns:
0 on success, or a negative value in case of error.