Public API and definitions of the connection handle for LwM2M client implementation using Wakaama. More...
Public API and definitions of the connection handle for LwM2M client implementation using Wakaama.
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"
Go to the source code of this file.
#define | SCHEME_COAPS "coaps://" |
#define | SCHEME_COAP "coap://" |
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. | |
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. | |
#define SCHEME_COAP "coap://" |
Definition at line 54 of file lwm2m_client_connection.h.
#define SCHEME_COAPS "coaps://" |
Definition at line 53 of file lwm2m_client_connection.h.
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.
[in] | conn_list | connections list to search |
[in] | remote | remote UDP endpoint to compare to |
[in] | type | type of connection to look for |
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.
[in] | conn | connection from where the packet came from |
[in] | buffer | received packet |
[in] | num_bytes | size of the packet |
[in] | client_data | LwM2M client data |