lwm2m_client_objects.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 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 
19 #ifndef LWM2M_CLIENT_OBJECTS_H
20 #define LWM2M_CLIENT_OBJECTS_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #include "lwm2m_client.h"
27 
36 #define LWM2M_ACC_CTRL_READ (1 << 0)
37 #define LWM2M_ACC_CTRL_WRITE (1 << 1)
38 #define LWM2M_ACC_CTRL_EXECUTE (1 << 2)
39 #define LWM2M_ACC_CTRL_DELETE (1 << 3)
40 #define LWM2M_ACC_CTRL_CREATE (1 << 4)
52 lwm2m_object_t *lwm2m_client_get_security_object(
53  lwm2m_client_data_t *client_data);
54 
64 lwm2m_object_t *lwm2m_client_get_server_object(
65  lwm2m_client_data_t *client_data);
66 
75 lwm2m_object_t *lwm2m_client_get_device_object(
76  lwm2m_client_data_t *client_data);
77 
86 lwm2m_object_t *lwm2m_client_get_acc_ctrl_object(
87  lwm2m_client_data_t *client_data);
88 
89 
90 #ifdef __cplusplus
91 }
92 #endif
93 
94 #endif /* LWM2M_CLIENT_OBJECTS_H */
95 
lwm2m_client.h
Definitions and public API for a LwM2M client using Wakaama.
lwm2m_client_get_acc_ctrl_object
lwm2m_object_t * lwm2m_client_get_acc_ctrl_object(lwm2m_client_data_t *client_data)
Creates a LwM2M access control object with the default configuration.
lwm2m_client_data_t
LwM2M client descriptor.
Definition: lwm2m_client.h:55
lwm2m_client_get_device_object
lwm2m_object_t * lwm2m_client_get_device_object(lwm2m_client_data_t *client_data)
Creates a LwM2M device object with the default configuration from net/lwm2m.h.
lwm2m_client_get_server_object
lwm2m_object_t * lwm2m_client_get_server_object(lwm2m_client_data_t *client_data)
Creates a LwM2M server object with the default configuration from net/lwm2m.h.