Loading...
Searching...
No Matches

Public API and definitions of the connection handle for LwM2M client implementation using Wakaama. More...

Detailed Description

Public API and definitions of the connection handle for LwM2M client implementation using Wakaama.

Author
Christian Manal manal.nosp@m.@uni.nosp@m.-brem.nosp@m.en.d.nosp@m.e
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_connection.h.

#include "net/ipv6/addr.h"
#include "net/sock/udp.h"
#include "lwm2m_client.h"
#include "lwm2m_client_config.h"
+ Include dependency graph for lwm2m_client_connection.h:

Go to the source code of this file.

#define SCHEME_COAPS   "coaps://"
 
#define SCHEME_COAP   "coap://"
 
lwm2m_client_connection_tlwm2m_client_connection_find (lwm2m_client_connection_t *conn_list, const sock_udp_ep_t *remote, lwm2m_client_connection_type_t type)
 Tries to find an existing connection based on a remote UDP endpoint.
 
int lwm2m_connection_handle_packet (lwm2m_client_connection_t *conn, uint8_t *buffer, size_t num_bytes, lwm2m_client_data_t *client_data)
 Handles a received packet from a connection.
 

Macro Definition Documentation

◆ SCHEME_COAP

#define SCHEME_COAP   "coap://"

Definition at line 54 of file lwm2m_client_connection.h.

◆ SCHEME_COAPS

#define SCHEME_COAPS   "coaps://"

Definition at line 53 of file lwm2m_client_connection.h.

Function Documentation

◆ lwm2m_client_connection_find()

lwm2m_client_connection_t * lwm2m_client_connection_find ( lwm2m_client_connection_t conn_list,
const sock_udp_ep_t remote,
lwm2m_client_connection_type_t  type 
)

Tries to find an existing connection based on a remote UDP endpoint.

Parameters
[in]conn_listconnections list to search
[in]remoteremote UDP endpoint to compare to
[in]typetype of connection to look for
Returns
pointer to the connection in success
NULL otherwise

◆ lwm2m_connection_handle_packet()

int lwm2m_connection_handle_packet ( lwm2m_client_connection_t conn,
uint8_t *  buffer,
size_t  num_bytes,
lwm2m_client_data_t client_data 
)

Handles a received packet from a connection.

Parameters
[in]connconnection from where the packet came from
[in]bufferreceived packet
[in]num_bytessize of the packet
[in]client_dataLwM2M client data
Returns
0 on success
non-zero otherwise