All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
temperature.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2024 HAW Hamburg
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
91 #ifndef OBJECTS_TEMPERATURE_H
92 #define OBJECTS_TEMPERATURE_H
93 
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97 
98 #include "liblwm2m.h"
99 #include "lwm2m_client.h"
101 
110 #ifndef CONFIG_LWM2M_TEMPERATURE_INSTANCES_MAX
111 #define CONFIG_LWM2M_TEMPERATURE_INSTANCES_MAX (1U)
112 #endif
118 #define LWM2M_TEMPERATURE_OBJECT_ID 3303
119 
124 
133 
144 
154  uint16_t instance_id, int16_t value);
155 
156 #ifdef __cplusplus
157 }
158 #endif
159 
160 #endif /* OBJECTS_TEMPERATURE_H */
int32_t lwm2m_object_temperature_instance_create(const lwm2m_obj_temperature_args_t *args)
Create a new Temperature Sensor instance.
lwm2m_object_t * lwm2m_object_temperature_init(lwm2m_client_data_t *client_data)
Initialize the Temperature Sensor object handle.
lwm2m_obj_ipso_base_sensor_args_t lwm2m_obj_temperature_args_t
Arguments for the creation of a Temperature Sensor object instance.
Definition: temperature.h:123
void lwm2m_object_temperature_update_value(const lwm2m_client_data_t *client_data, uint16_t instance_id, int16_t value)
Update the value of the temperature sensor and trigger a notification to the observing servers,...
Definitions and public API for a LwM2M client using Wakaama.
LwM2M client descriptor.
Definition: lwm2m_client.h:70
Arguments for the creation of an object based on the IPSO Sensor Base object instance.