LwM2M Client using Wakaama

Wakaama adaption to RIOT for implementing a LwM2M client. More...

Detailed Description

Wakaama adaption to RIOT for implementing a LwM2M client.

Files

file  lwm2m_client.h
 Definitions and public API for a LwM2M client using Wakaama.
 
file  lwm2m_client_connection.h
 Public API and definitions of the connection handle for LwM2M client implementation using Wakaama.
 
file  lwm2m_client_objects.h
 Public API and definitions for the helper functions to interact with basic objects from a LwM2M client.
 

Data Structures

struct  lwm2m_client_connection
 Connection to server descriptor. More...
 
struct  lwm2m_client_data_t
 LwM2M client descriptor. More...
 

Macros

#define LWM2M_CLIENT_RCV_BUFFER_SIZE   (200)
 Size of the buffer for the UDP packet reception.
 
#define LWM2M_CLIENT_REBOOT_TIME   (5)
 Time in seconds to wait until reboot after a server request.
 
#define LWM2M_CLIENT_MIN_REFRESH_TIME   (1)
 Time in seconds to wait until LwM2M is refreshed. More...
 

Typedefs

typedef struct lwm2m_client_connection lwm2m_client_connection_t
 Connection to server descriptor.
 

Functions

lwm2m_context_t * lwm2m_client_run (lwm2m_client_data_t *client_data, lwm2m_object_t *obj_list[], uint16_t obj_numof)
 Starts a LwM2M client. More...
 
void lwm2m_client_init (lwm2m_client_data_t *client_data)
 Initializes a LwM2M client. More...
 
static lwm2m_context_t * lwm2m_client_get_ctx (lwm2m_client_data_t *client_data)
 Returns the LwM2M context of a LwM2M client. More...
 

Macro Definition Documentation

◆ LWM2M_CLIENT_MIN_REFRESH_TIME

#define LWM2M_CLIENT_MIN_REFRESH_TIME   (1)

Time in seconds to wait until LwM2M is refreshed.

Note
This time is used as the timeout for receiving UDP packets and will be the maximum time to wait between calls to wakaama core.

Definition at line 81 of file lwm2m_client.h.

Function Documentation

◆ lwm2m_client_get_ctx()

static lwm2m_context_t* lwm2m_client_get_ctx ( lwm2m_client_data_t client_data)
inlinestatic

Returns the LwM2M context of a LwM2M client.

Parameters
[in]client_datapointer to the LwM2M client descriptor
Returns
Pointer to the LwM2M context

Definition at line 113 of file lwm2m_client.h.

◆ lwm2m_client_init()

void lwm2m_client_init ( lwm2m_client_data_t client_data)

Initializes a LwM2M client.

Note
This functions initializes the memory allocation and is needed before calling any object creation (i.e. any call to lwm2m_malloc).
Parameters
[in]client_dataPointer to a LwM2M client data descriptor

◆ lwm2m_client_run()

lwm2m_context_t* lwm2m_client_run ( lwm2m_client_data_t client_data,
lwm2m_object_t *  obj_list[],
uint16_t  obj_numof 
)

Starts a LwM2M client.

Parameters
[in,out]client_dataPointer to a LwM2M client data descriptor
[in]obj_listList of LwM2M objects to be registered
[in]obj_numofNumber of objects in obj_list
Returns
Context of the LwM2M client