Skip to content

Configuring CoAP and LWM2M

Niclas Finne edited this page May 16, 2017 · 2 revisions

CoAP

LWM2M

Reducing memory usage

CoAP

/* Max payload in each CoAP packet - used for buffer sizes */
#define REST_MAX_CHUNK_SIZE              128

/* Multiplies with chunk size, be aware of memory constraints. */
#define COAP_MAX_OPEN_TRANSACTIONS       2
#define COAP_CONF_MAX_OBSERVEES          COAP_MAX_OPEN_TRANSACTIONS

LWM2M

/* The max number of server configurations that can be stored */
#define LWM2M_SERVER_CONF_MAX_COUNT      1
Clone this wiki locally