Loading...
Searching...
No Matches
illuminance.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2024 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
86
87#ifdef __cplusplus
88extern "C" {
89#endif
90
91#include "liblwm2m.h"
92#include "lwm2m_client.h"
94
103#ifndef CONFIG_LWM2M_ILLUMINANCE_INSTANCES_MAX
104#define CONFIG_LWM2M_ILLUMINANCE_INSTANCES_MAX (1U)
105#endif
107
111#define LWM2M_ILLUMINANCE_OBJECT_ID 3301
112
117
126
137
147 uint16_t instance_id, int16_t value);
148
149#ifdef __cplusplus
150}
151#endif
152
int32_t lwm2m_object_illuminance_instance_create(const lwm2m_obj_illuminance_args_t *args)
Create a new Illuminance Sensor instance.
lwm2m_object_t * lwm2m_object_illuminance_init(lwm2m_client_data_t *client_data)
Initialize the Illuminance Sensor object handle.
void lwm2m_object_illuminance_update_value(const lwm2m_client_data_t *client_data, uint16_t instance_id, int16_t value)
Update the value of the illuminance sensor and trigger a notification to the observing servers,...
lwm2m_obj_ipso_base_sensor_args_t lwm2m_obj_illuminance_args_t
Arguments for the creation of a Illuminance Sensor object instance.
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.