From 476b7cbac5a65e517c791bac9a9150f4e90dc0e2 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Fri, 20 Jan 2012 19:24:57 +0100 Subject: [PATCH] added missing symbols --- config.h.contiki | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/config.h.contiki b/config.h.contiki index d552f443..08d980b2 100644 --- a/config.h.contiki +++ b/config.h.contiki @@ -11,7 +11,7 @@ /** Number of resources that can be handled by a CoAP server in addition to * @c /.well-known/core */ -#define COAP_MAX_RESOURCES 1 +#define COAP_MAX_RESOURCES 3 /** Number of attributes that can be handled (should be at least * @c 2 * COAP_MAX_RESOURCES. to carry the content type and the @@ -32,6 +32,20 @@ */ #define COAP_MAX_SUBSCRIBERS 3 +/** + * Number of notifications that may be sent non-confirmable before a + * confirmable message is sent to detect if observers are alive. The + * maximum allowed value here is @c 15. + */ +#define COAP_OBS_MAX_NON 5 + +/** + * Number of confirmable notifications that may fail (i.e. time out + * without being ACKed) before an observer is removed. The maximum + * value for COAP_OBS_MAX_FAIL is @c 3. + */ +#define COAP_OBS_MAX_FAIL 3 + #define DEBUG DEBUG_PRINT #define HAVE_STRNLEN 1 #define HAVE_SNPRINTF 1