Base IPSO sensor functionality to implement similar IPSO objects.  
More...
Base IPSO sensor functionality to implement similar IPSO objects. 
- Warning
 - This feature is experimental!
 This module is not a complete object, but provides common functionalities shared among different IPSO sensor objects. It should not be used directly, from the application, but rather be used as a dependency for other objects. 
To use this module add USEMODULE += wakaama_objects_ipso_sensor_base to the dependencies of your own object module.
Resources
Given that IPSO sensors share a common set of resources, these are implemented by this module.
| Name    | ID    | Mandatory    | Type    | Range    | Units    | Implemented     | 
| Sensor Value    | 5700    | Yes    | Float    | -    | See 5701    | Yes     | 
| Min. Measured Value    | 5601    | No    | Float    | -    | See 5701    | Yes     | 
| Max. Measured Value    | 5602    | No    | Float    | -    | See 5701    | Yes     | 
| Min. Range Value    | 5603    | No    | Float    | -    | See 5701    | Yes     | 
| Max. Range Value    | 5604    | No    | Float    | -    | See 5701    | Yes     | 
| Reset Min. and Max. Measured Values    | 5605    | No    | -    | -    | -    | Yes     | 
| Sensor Units    | 5701    | No    | String    | -    | -    | Yes    | 
◆ LWM2M_IPSO_BASE_SENSOR_MAX_MEASURED_VALUE_ID
      
        
          | #define LWM2M_IPSO_BASE_SENSOR_MAX_MEASURED_VALUE_ID   5602 | 
        
      
 
 
◆ LWM2M_IPSO_BASE_SENSOR_MAX_RANGE_VALUE_ID
      
        
          | #define LWM2M_IPSO_BASE_SENSOR_MAX_RANGE_VALUE_ID   5604 | 
        
      
 
 
◆ LWM2M_IPSO_BASE_SENSOR_MIN_MEASURED_VALUE_ID
      
        
          | #define LWM2M_IPSO_BASE_SENSOR_MIN_MEASURED_VALUE_ID   5601 | 
        
      
 
 
◆ LWM2M_IPSO_BASE_SENSOR_MIN_RANGE_VALUE_ID
      
        
          | #define LWM2M_IPSO_BASE_SENSOR_MIN_RANGE_VALUE_ID   5603 | 
        
      
 
 
◆ LWM2M_IPSO_BASE_SENSOR_RESET_MIN_MAX_MEASURED_VALUES_ID
      
        
          | #define LWM2M_IPSO_BASE_SENSOR_RESET_MIN_MAX_MEASURED_VALUES_ID   5605 | 
        
      
 
 
◆ lwm2m_obj_ipso_base_sensor_read_cb_t
      
        
          | typedef int lwm2m_obj_ipso_base_sensor_read_cb_t(void *read_cb_arg, int16_t *value) | 
        
      
 
Callback for reading the sensor value. 
- Parameters
 - 
  
    | [in] | read_cb_arg | Data passed for the read callback when the instance was created.  | 
    | [out] | value | Pointer to the variable where the value will be stored. | 
  
   
- Returns
 - 0 on success 
 
- 
<0 otherwise 
 
Definition at line 109 of file ipso_sensor_base.h.
 
 
◆ lwm2m_object_ipso_sensor_base_init_derived()
Initialize the a LwM2M object derived from the IPSO Sensor Base object. 
- Parameters
 - 
  
    | [in,out] | client_data | Pointer to the LwM2M client.  | 
    | [in,out] | object | Pointer to the LwM2M IPSO object.  | 
    | [in] | object_id | Object ID.  | 
    | [in] | instances | List of allocated instances.  | 
    | [in] | instance_count | Number of allocated instances. | 
  
   
- Return values
 - 
  
  
 
 
 
◆ lwm2m_object_ipso_sensor_base_instance_create()
Create a new object instance based on the IPSO Sensor Base and add it to the object list. 
- Parameters
 - 
  
    | [in,out] | object | Pointer to the LwM2M IPSO object.  | 
    | [in] | args | Initialize structure with the parameter for the instance. May not be NULL. | 
  
   
- Return values
 - 
  
    | instance | ID (>0) on success  | 
    | <0 | otherwise  | 
  
   
 
 
◆ lwm2m_object_ipso_sensor_base_update_value()
Update the value of the illuminance sensor and trigger a notification to the observing servers, if any. 
- Parameters
 - 
  
    | [in] | client_data | Pointer to the LwM2M client.  | 
    | [in] | object | Pointer to the LwM2M IPSO object.  | 
    | [in] | instance_id | ID of the instance to update.  | 
    | [in] | value | New value for the sensor.  |