Make MTU configurable.

Use static or stack storage for coap_packet_t.
This commit is contained in:
jcmichelou committed 2017-06-26 17:34:01 +02:00
1 parent 6e97dbafcf
commit b2fe4a64de
29 files changed
+303 -165

No files matched your search

+1 -1
View File
@@ -371,7 +371,7 @@ unsigned short coap_opt_delta(const coap_opt_t *opt);
/** @deprecated { Use coap_opt_encode() instead. } */
#define COAP_OPT_SETDELTA(opt,val) \
coap_opt_encode((opt), COAP_MAX_PDU_SIZE, (val), NULL, 0)
coap_opt_encode((opt), COAP_DEFAULT_PDU_SIZE, (val), NULL, 0)
/**
* Returns the length of the given option. @p opt must point to an option jump