Loading...
Searching...
No Matches
voltage.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
93#ifndef OBJECTS_VOLTAGE_H
94#define OBJECTS_VOLTAGE_H
95
96#ifdef __cplusplus
97extern "C" {
98#endif
99
100#include "liblwm2m.h"
101#include "lwm2m_client.h"
103
112#ifndef CONFIG_LWM2M_VOLTAGE_INSTANCES_MAX
113#define CONFIG_LWM2M_VOLTAGE_INSTANCES_MAX (1U)
114#endif
120#define LWM2M_VOLTAGE_OBJECT_ID 3316
121
126
134lwm2m_object_t *lwm2m_object_voltage_init(lwm2m_client_data_t *client_data);
135
146
156 uint16_t instance_id, int16_t value);
157
158#ifdef __cplusplus
159}
160#endif
161
162#endif /* OBJECTS_VOLTAGE_H */
void lwm2m_object_voltage_update_value(const lwm2m_client_data_t *client_data, uint16_t instance_id, int16_t value)
Update the value of the voltage sensor and trigger a notification to the observing servers,...
lwm2m_object_t * lwm2m_object_voltage_init(lwm2m_client_data_t *client_data)
Initialize the Voltage Sensor object handle.
lwm2m_obj_ipso_base_sensor_args_t lwm2m_obj_voltage_args_t
Arguments for the creation of a Voltage Sensor object instance.
Definition voltage.h:125
int32_t lwm2m_object_voltage_instance_create(const lwm2m_obj_voltage_args_t *args)
Create a new Voltage Sensor instance.
Definitions and public API for a LwM2M client using Wakaama.
LwM2M client descriptor.
Arguments for the creation of an object based on the IPSO Sensor Base object instance.