All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

Public API and definitions for the helper functions to interact with basic objects from a LwM2M client. More...

Detailed Description

Public API and definitions for the helper functions to interact with basic objects from a LwM2M client.

Author
Leandro Lanzieri leand.nosp@m.ro.l.nosp@m.anzie.nosp@m.ri@h.nosp@m.aw-ha.nosp@m.mbur.nosp@m.g.de

Definition in file lwm2m_client_objects.h.

#include "lwm2m_client.h"
+ Include dependency graph for lwm2m_client_objects.h:

Go to the source code of this file.

Functions

lwm2m_object_t * lwm2m_client_get_server_object (lwm2m_client_data_t *client_data, int server_id)
 Creates a LwM2M server object with the default configuration from net/lwm2m.h.
 
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.
 

Access Control Bits

Bit definitions for the ACL property of the LwM2M Access Control Object.

See also
http://www.openmobilealliance.org/tech/profiles/LWM2M_Access_Control-v1_0_3.xml
#define LWM2M_ACC_CTRL_READ   (1 << 0)
 Read access.
 
#define LWM2M_ACC_CTRL_WRITE   (1 << 1)
 Write access.
 
#define LWM2M_ACC_CTRL_EXECUTE   (1 << 2)
 Execution access.
 
#define LWM2M_ACC_CTRL_DELETE   (1 << 3)
 Deletion access.
 
#define LWM2M_ACC_CTRL_CREATE   (1 << 4)
 Creation access.
 

Macro Definition Documentation

◆ LWM2M_ACC_CTRL_CREATE

#define LWM2M_ACC_CTRL_CREATE   (1 << 4)

Creation access.

Definition at line 40 of file lwm2m_client_objects.h.

◆ LWM2M_ACC_CTRL_DELETE

#define LWM2M_ACC_CTRL_DELETE   (1 << 3)

Deletion access.

Definition at line 39 of file lwm2m_client_objects.h.

◆ LWM2M_ACC_CTRL_EXECUTE

#define LWM2M_ACC_CTRL_EXECUTE   (1 << 2)

Execution access.

Definition at line 38 of file lwm2m_client_objects.h.

◆ LWM2M_ACC_CTRL_READ

#define LWM2M_ACC_CTRL_READ   (1 << 0)

Read access.

Definition at line 36 of file lwm2m_client_objects.h.

◆ LWM2M_ACC_CTRL_WRITE

#define LWM2M_ACC_CTRL_WRITE   (1 << 1)

Write access.

Definition at line 37 of file lwm2m_client_objects.h.

Function Documentation

◆ 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.

Parameters
[in]client_dataPointer to a LwM2M client data descriptor
Returns
Pointer to the created object
NULL otherwise

◆ lwm2m_client_get_server_object()

lwm2m_object_t * lwm2m_client_get_server_object ( lwm2m_client_data_t * client_data,
int server_id )

Creates a LwM2M server object with the default configuration from net/lwm2m.h.

Parameters
[in,out]client_dataPointer to a LwM2M client data descriptor
[in]server_idServer ID (SID) to assign to the new instance
Returns
Pointer to the created object
NULL otherwise