Wakaama adaption to RIOT for implementing a LwM2M client.
More...
Wakaama adaption to RIOT for implementing a LwM2M client.
|
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.
|
|
◆ 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 79 of file lwm2m_client.h.
◆ LWM2M_CLIENT_RCV_BUFFER_SIZE
#define LWM2M_CLIENT_RCV_BUFFER_SIZE (200) |
Size of the buffer for the UDP packet reception.
Definition at line 65 of file lwm2m_client.h.
◆ LWM2M_CLIENT_REBOOT_TIME
#define LWM2M_CLIENT_REBOOT_TIME (5) |
Time in seconds to wait until reboot after a server request.
Definition at line 71 of file lwm2m_client.h.
◆ lwm2m_client_get_ctx()
Returns the LwM2M context of a LwM2M client.
- Parameters
-
[in] | client_data | pointer to the LwM2M client descriptor |
- Returns
- Pointer to the LwM2M context
Definition at line 111 of file lwm2m_client.h.
◆ lwm2m_client_init()
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_data | Pointer 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_data | Pointer to a LwM2M client data descriptor |
[in] | obj_list | List of LwM2M objects to be registered |
[in] | obj_numof | Number of objects in obj_list |
- Returns
- Context of the LwM2M client