Loading...
Searching...
No Matches
barometer.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
9#pragma once
10
92
93#ifdef __cplusplus
94extern "C" {
95#endif
96
97#include "liblwm2m.h"
98#include "lwm2m_client.h"
100
109#ifndef CONFIG_LWM2M_BAROMETER_INSTANCES_MAX
110#define CONFIG_LWM2M_BAROMETER_INSTANCES_MAX (1U)
111#endif
113
117#define LWM2M_BAROMETER_OBJECT_ID 3315
118
123
132
143
153 uint16_t instance_id, int16_t value);
154
155#ifdef __cplusplus
156}
157#endif
158
int32_t lwm2m_object_barometer_instance_create(const lwm2m_obj_barometer_args_t *args)
Create a new Barometer instance.
lwm2m_obj_ipso_base_sensor_args_t lwm2m_obj_barometer_args_t
Arguments for the creation of a Barometer object instance.
Definition barometer.h:122
lwm2m_object_t * lwm2m_object_barometer_init(lwm2m_client_data_t *client_data)
Initialize the Barometer object handle.
void lwm2m_object_barometer_update_value(const lwm2m_client_data_t *client_data, uint16_t instance_id, int16_t value)
Update the value of the barometer sensor and trigger a notification to the observing servers,...
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.
Definitions and public API for a LwM2M client using Wakaama.
LwM2M client descriptor.