Loading...
Searching...
No Matches
current.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
87
88#ifdef __cplusplus
89extern "C" {
90#endif
91
92#include "liblwm2m.h"
93#include "lwm2m_client.h"
95
104#ifndef CONFIG_LWM2M_CURRENT_INSTANCES_MAX
105#define CONFIG_LWM2M_CURRENT_INSTANCES_MAX (1U)
106#endif
108
112#define LWM2M_CURRENT_OBJECT_ID 3317
113
118
126lwm2m_object_t *lwm2m_object_current_init(lwm2m_client_data_t *client_data);
127
138
148 uint16_t instance_id, int16_t value);
149
150#ifdef __cplusplus
151}
152#endif
153
lwm2m_obj_ipso_base_sensor_args_t lwm2m_obj_current_args_t
Arguments for the creation of a Current Sensor object instance.
Definition current.h:117
void lwm2m_object_current_update_value(const lwm2m_client_data_t *client_data, uint16_t instance_id, int16_t value)
Update the value of the current sensor and trigger a notification to the observing servers,...
int32_t lwm2m_object_current_instance_create(const lwm2m_obj_current_args_t *args)
Create a new Current Sensor instance.
lwm2m_object_t * lwm2m_object_current_init(lwm2m_client_data_t *client_data)
Initialize the Current Sensor object handle.
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.