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) |
Tries to find an existing connection based on a remote UDP endpoint. More... | |
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. More... | |
lwm2m_client_connection_t* lwm2m_client_connection_find | ( | lwm2m_client_connection_t * | conn_list, |
const sock_udp_ep_t * | remote | ||
) |
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 |
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 |