Definition in file ipso_sensor_base.h.
Go to the source code of this file.
Data Structures | |
struct | lwm2m_obj_ipso_sensor_base_args |
Arguments for the creation of an object based on the IPSO Sensor Base object instance. More... | |
struct | lwm2m_obj_ipso_sensor_base_inst |
LwM2M IPSO sensor base instance. More... | |
struct | lwm2m_obj_ipso_sensor_base |
LwM2M IPSO sensor base object. More... | |
Macros | |
#define | CONFIG_LWM2M_IPSO_SENSOR_BASE_UNITS_MAX_SIZE (4U) |
Maximum size for the units resource string. | |
Typedefs | |
typedef int | lwm2m_obj_ipso_base_sensor_read_cb_t(void *read_cb_arg, int16_t *value) |
Callback for reading the sensor value. | |
typedef struct lwm2m_obj_ipso_sensor_base_args | lwm2m_obj_ipso_base_sensor_args_t |
Arguments for the creation of an object based on the IPSO Sensor Base object instance. | |
typedef struct lwm2m_obj_ipso_sensor_base_inst | lwm2m_obj_ipso_sensor_base_inst_t |
LwM2M IPSO sensor base instance. | |
typedef struct lwm2m_obj_ipso_sensor_base | lwm2m_obj_ipso_sensor_base_t |
LwM2M IPSO sensor base object. | |
Functions | |
int32_t | lwm2m_object_ipso_sensor_base_instance_create (lwm2m_obj_ipso_sensor_base_t *object, const lwm2m_obj_ipso_base_sensor_args_t *args) |
Create a new object instance based on the IPSO Sensor Base and add it to the object list. | |
int | lwm2m_object_ipso_sensor_base_init_derived (lwm2m_client_data_t *client_data, lwm2m_obj_ipso_sensor_base_t *object, uint16_t object_id, lwm2m_obj_ipso_sensor_base_inst_t *instances, size_t instance_count) |
Initialize the a LwM2M object derived from the IPSO Sensor Base object. | |
void | lwm2m_object_ipso_sensor_base_update_value (const lwm2m_client_data_t *client_data, const lwm2m_obj_ipso_sensor_base_t *object, uint16_t instance_id, int16_t value) |
Update the value of the illuminance sensor and trigger a notification to the observing servers, if any. | |
IPSO sensor base object resource's IDs (shared among many IPSO sensor objects) | |
#define | LWM2M_IPSO_BASE_SENSOR_VALUE_ID 5700 |
Sensor value resource ID. | |
#define | LWM2M_IPSO_BASE_SENSOR_MIN_MEASURED_VALUE_ID 5601 |
Min. | |
#define | LWM2M_IPSO_BASE_SENSOR_MAX_MEASURED_VALUE_ID 5602 |
Max. | |
#define | LWM2M_IPSO_BASE_SENSOR_MIN_RANGE_VALUE_ID 5603 |
Min. | |
#define | LWM2M_IPSO_BASE_SENSOR_MAX_RANGE_VALUE_ID 5604 |
Max. | |
#define | LWM2M_IPSO_BASE_SENSOR_RESET_MIN_MAX_MEASURED_VALUES_ID 5605 |
Reset min. | |
#define | LWM2M_IPSO_BASE_SENSOR_UNITS_ID 5701 |
Sensor units resource ID. | |