Loading...
Searching...
No Matches

Arguments for the creation of an object based on the IPSO Sensor Base object instance. More...

Detailed Description

Arguments for the creation of an object based on the IPSO Sensor Base object instance.

Definition at line 116 of file ipso_sensor_base.h.

#include <ipso_sensor_base.h>

Data Fields

int32_t instance_id
 ID for the new instance.
 
char * units
 Null-terminated string of the "Sensor Units" resource.
 
size_t units_len
 Length of units.
 
int16_t min_range_value
 Minimum value that can be measured by the sensor.
 
int16_t max_range_value
 Maximum value that can be measured by the sensor.
 
void * read_cb_arg
 Data to pass to the read callback.
 
lwm2m_obj_ipso_base_sensor_read_cb_tread_cb
 Callback to read the sensor value.
 

Field Documentation

◆ instance_id

int32_t lwm2m_obj_ipso_sensor_base_args::instance_id

ID for the new instance.

It must be between 0 and (UINT16_MAX - 1), if -1 the next available ID will be used.

Definition at line 117 of file ipso_sensor_base.h.

◆ max_range_value

int16_t lwm2m_obj_ipso_sensor_base_args::max_range_value

Maximum value that can be measured by the sensor.

Definition at line 122 of file ipso_sensor_base.h.

◆ min_range_value

int16_t lwm2m_obj_ipso_sensor_base_args::min_range_value

Minimum value that can be measured by the sensor.

Definition at line 121 of file ipso_sensor_base.h.

◆ read_cb

lwm2m_obj_ipso_base_sensor_read_cb_t* lwm2m_obj_ipso_sensor_base_args::read_cb

Callback to read the sensor value.

May be NULL.

Definition at line 124 of file ipso_sensor_base.h.

◆ read_cb_arg

void* lwm2m_obj_ipso_sensor_base_args::read_cb_arg

Data to pass to the read callback.

May be NULL.

Definition at line 123 of file ipso_sensor_base.h.

◆ units

char* lwm2m_obj_ipso_sensor_base_args::units

Null-terminated string of the "Sensor Units" resource.

May be NULL.

Definition at line 119 of file ipso_sensor_base.h.

◆ units_len

size_t lwm2m_obj_ipso_sensor_base_args::units_len

Length of units.

Definition at line 120 of file ipso_sensor_base.h.


The documentation for this struct was generated from the following file: