25#include "openthread/ip6.h"
26#include "openthread/udp.h"
30#define LWM2M_STANDARD_PORT_STR "5683"
31#define LWM2M_STANDARD_PORT 5683
32#define LWM2M_DTLS_PORT_STR "5684"
33#define LWM2M_DTLS_PORT 5684
34#define LWM2M_BSSERVER_PORT_STR "5685"
35#define LWM2M_BSSERVER_PORT 5685
68 lwm2m_context_t *lwm2mH,
69 lwm2m_object_t *secObjectP,
70 uint16_t secObjInstID);
Global error declarations for use across the Cascoda SDK.
void connection_rx_info_callback(uint16_t aPktLen)
Callback that can be implemented by the application to track receive statistics.
Definition lwm2mclient.c:670
void connection_free(connection_t *con)
Free a connection created with connection_create.
Definition connection.c:195
struct connection_t connection_t
The struct for holding information about each connection the lwm2m stack uses.
@ LINK_MTU
Maximum Transmission Unit for link.
Definition connection.h:40
@ CONPOOL_SIZE
Maximum number of concurrent connections.
Definition connection.h:39
connection_t * connection_create(otInstance *aInstance, lwm2m_context_t *lwm2mH, lwm2m_object_t *secObjectP, uint16_t secObjInstID)
Connect to the server defined in the security object.
Definition connection.c:144
void connection_tx_info_callback(uint16_t aPktLen)
Callback that can be implemented by the application to track transmit statistics.
Definition lwm2mclient.c:675
The struct for holding information about each connection the lwm2m stack uses.
Definition connection.h:47
lwm2m_context_t * lwm2mH
Pointer to instance of lwm2m.
Definition connection.h:50
otUdpSocket socket
Openthread socket structure, used for UDP communications.
Definition connection.h:48
otInstance * otInstance
Pointer to openthread instance.
Definition connection.h:49
bool inUse
Used internally to determine whether this connection structure is in use.
Definition connection.h:51