Make CoAP more configurable

This commit is contained in:
George Oikonomou 2017-10-07 16:33:22 +01:00
parent f40cc506a3
commit ab7b4676e0

View File

@ -40,13 +40,18 @@
#define ER_COAP_CONF_H_ #define ER_COAP_CONF_H_
/* Features that can be disabled to achieve smaller memory footprint */ /* Features that can be disabled to achieve smaller memory footprint */
#ifndef COAP_LINK_FORMAT_FILTERING
#define COAP_LINK_FORMAT_FILTERING 0 #define COAP_LINK_FORMAT_FILTERING 0
#endif /* COAP_LINK_FORMAT_FILTERING */
#ifndef COAP_PROXY_OPTION_PROCESSING
#define COAP_PROXY_OPTION_PROCESSING 0 #define COAP_PROXY_OPTION_PROCESSING 0
#endif /* COAP_PROXY_OPTION_PROCESSING */
/* Listening port for the CoAP REST Engine */ /* Listening port for the CoAP REST Engine */
#ifndef COAP_SERVER_PORT #ifndef COAP_SERVER_PORT
#define COAP_SERVER_PORT COAP_DEFAULT_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. */ /* The number of concurrent messages that can be stored for retransmission in the transaction layer. */
#ifndef COAP_MAX_OPEN_TRANSACTIONS #ifndef COAP_MAX_OPEN_TRANSACTIONS
@ -69,6 +74,8 @@
#endif /* COAP_MAX_OBSERVERS */ #endif /* COAP_MAX_OBSERVERS */
/* Interval in notifies in which NON notifies are changed to CON notifies to check client. */ /* 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 #define COAP_OBSERVE_REFRESH_INTERVAL 20
#endif /* COAP_OBSERVE_REFRESH_INTERVAL */
#endif /* ER_COAP_CONF_H_ */ #endif /* ER_COAP_CONF_H_ */