remote power switch example updated to use coap version 13
This commit is contained in:
parent
db729eddd2
commit
49d861979b
|
@ -1,3 +1,7 @@
|
|||
ifndef TARGET
|
||||
TARGET=seedeye
|
||||
endif
|
||||
|
||||
all: remotepowerswitch
|
||||
|
||||
CONTIKI=../../../
|
||||
|
@ -8,14 +12,24 @@ WITH_UIP6=1
|
|||
# for some platforms
|
||||
UIP_CONF_IPV6=1
|
||||
|
||||
# variable for this Makefile
|
||||
# configure CoAP implementation (3|7) (er-coap-07 also supports CoAP draft 08)
|
||||
WITH_COAP=7
|
||||
WITH_COAP=13
|
||||
|
||||
UIP_CONF_RPL=1
|
||||
|
||||
# REST framework, requires WITH_COAP
|
||||
ifeq ($(WITH_COAP), 7)
|
||||
ifeq ($(WITH_COAP), 13)
|
||||
${info INFO: compiling with CoAP-13}
|
||||
CFLAGS += -DWITH_COAP=13
|
||||
CFLAGS += -DREST=coap_rest_implementation
|
||||
CFLAGS += -DUIP_CONF_TCP=0
|
||||
APPS += er-coap-13
|
||||
else ifeq ($(WITH_COAP), 12)
|
||||
${info INFO: compiling with CoAP-12}
|
||||
CFLAGS += -DWITH_COAP=12
|
||||
CFLAGS += -DREST=coap_rest_implementation
|
||||
CFLAGS += -DUIP_CONF_TCP=0
|
||||
APPS += er-coap-12
|
||||
else ifeq ($(WITH_COAP), 7)
|
||||
${info INFO: compiling with CoAP-08}
|
||||
CFLAGS += -DWITH_COAP=7
|
||||
CFLAGS += -DREST=coap_rest_implementation
|
||||
|
|
|
@ -104,6 +104,8 @@ typedef uint32_t rtimer_clock_t;
|
|||
#define UIP_CONF_ND6_RETRANS_TIMER 10000
|
||||
|
||||
|
||||
#define UIP_CONF_BUFFER_SIZE 240
|
||||
|
||||
#ifndef QUEUEBUF_CONF_NUM
|
||||
#define QUEUEBUF_CONF_NUM 16
|
||||
#endif /* QUEUEBUF_CONF_NUM */
|
||||
|
|
Loading…
Reference in a new issue