2022-03-06 00:22:59 +01:00
|
|
|
ifeq (2, $(words $(filter ipv4 ipv6, $(USEMODULE))))
|
|
|
|
$(shell $(COLOR_ECHO) "$(COLOR_YELLOW)Due to limitations in the gcoap API it is currently not \
|
|
|
|
possible to use a dual stack setup$(COLOR_RESET)" 1>&2)
|
|
|
|
endif
|
2023-08-21 13:43:47 +02:00
|
|
|
|
|
|
|
CONFIG_GCOAP_PDU_BUF_SIZE := $(or $(CONFIG_GCOAP_PDU_BUF_SIZE),128)
|
2024-02-26 20:19:11 +01:00
|
|
|
# the initial DTLS handshake may exceed the block size
|
|
|
|
DTLS_MAX_BUF ?= $(shell echo $$(((${CONFIG_GCOAP_PDU_BUF_SIZE} + 36) > 200 ? (${CONFIG_GCOAP_PDU_BUF_SIZE} + 36) : 200 )))
|
2024-04-25 13:12:49 +02:00
|
|
|
|
|
|
|
ifneq (,$(filter gcoap_forward_proxy,$(USEMODULE)))
|
|
|
|
INCLUDES += -I$(RIOTBASE)/sys/net/application_layer/gcoap/include
|
|
|
|
endif
|