From ab7b4676e0b3171b94f8d646b03c44324d29f312 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Sat, 7 Oct 2017 16:33:22 +0100 Subject: [PATCH] Make CoAP more configurable --- os/net/app-layer/coap/coap-conf.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/os/net/app-layer/coap/coap-conf.h b/os/net/app-layer/coap/coap-conf.h index 00d13d7c5..2aabc4be4 100644 --- a/os/net/app-layer/coap/coap-conf.h +++ b/os/net/app-layer/coap/coap-conf.h @@ -40,13 +40,18 @@ #define ER_COAP_CONF_H_ /* Features that can be disabled to achieve smaller memory footprint */ +#ifndef COAP_LINK_FORMAT_FILTERING #define COAP_LINK_FORMAT_FILTERING 0 +#endif /* COAP_LINK_FORMAT_FILTERING */ + +#ifndef COAP_PROXY_OPTION_PROCESSING #define COAP_PROXY_OPTION_PROCESSING 0 +#endif /* COAP_PROXY_OPTION_PROCESSING */ /* Listening port for the CoAP REST Engine */ #ifndef COAP_SERVER_PORT #define COAP_SERVER_PORT COAP_DEFAULT_PORT -#endif +#endif /* COAP_SERVER_PORT */ /* The number of concurrent messages that can be stored for retransmission in the transaction layer. */ #ifndef COAP_MAX_OPEN_TRANSACTIONS @@ -69,6 +74,8 @@ #endif /* COAP_MAX_OBSERVERS */ /* Interval in notifies in which NON notifies are changed to CON notifies to check client. */ +#ifndef COAP_OBSERVE_REFRESH_INTERVAL #define COAP_OBSERVE_REFRESH_INTERVAL 20 +#endif /* COAP_OBSERVE_REFRESH_INTERVAL */ #endif /* ER_COAP_CONF_H_ */