2020-01-31 09:59:53 +01:00
|
|
|
# Copyright (c) 2020 HAW Hamburg
|
|
|
|
#
|
|
|
|
# This file is subject to the terms and conditions of the GNU Lesser
|
|
|
|
# General Public License v2.1. See the file LICENSE in the top level
|
|
|
|
# directory for more details.
|
|
|
|
#
|
|
|
|
|
2023-06-08 16:29:12 +02:00
|
|
|
# nanoCoAP provides CoAP functionalities
|
2020-08-31 09:33:35 +02:00
|
|
|
config USEMODULE_NANOCOAP
|
2020-04-27 10:06:01 +02:00
|
|
|
bool
|
2020-01-31 09:59:53 +01:00
|
|
|
select HAS_PROTOCOL_COAP
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
menuconfig KCONFIG_USEMODULE_NANOCOAP
|
2023-06-08 16:29:12 +02:00
|
|
|
bool "Configure nanoCoAP module"
|
2020-08-31 09:33:35 +02:00
|
|
|
depends on USEMODULE_NANOCOAP
|
2020-01-31 09:59:53 +01:00
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
if KCONFIG_USEMODULE_NANOCOAP
|
2020-01-31 09:59:53 +01:00
|
|
|
|
|
|
|
config NANOCOAP_NOPTS_MAX
|
|
|
|
int "Maximum number of options in a message"
|
|
|
|
default 16
|
|
|
|
|
|
|
|
config NANOCOAP_URI_MAX
|
|
|
|
int "Maximum length of a resource path"
|
|
|
|
default 64
|
|
|
|
help
|
|
|
|
Maximum length of a resource path string read from or written to a
|
|
|
|
message.
|
|
|
|
|
|
|
|
config NANOCOAP_BLOCK_SIZE_EXP_MAX
|
|
|
|
int "Maximum size for a blockwise fransfer (as exponent of 2^n)"
|
|
|
|
default 6
|
|
|
|
|
|
|
|
config NANOCOAP_QS_MAX
|
|
|
|
int "Maximum length of a query string written to a message"
|
|
|
|
default 64
|
|
|
|
|
2020-04-17 13:43:52 +02:00
|
|
|
menuconfig KCONFIG_USEMODULE_NANOCOAP_CACHE
|
2023-06-08 16:29:12 +02:00
|
|
|
bool "Configure nanoCoAP Cache module"
|
2020-04-17 13:43:52 +02:00
|
|
|
depends on USEMODULE_NANOCOAP_CACHE
|
|
|
|
|
|
|
|
if KCONFIG_USEMODULE_NANOCOAP_CACHE
|
|
|
|
|
|
|
|
config NANOCOAP_CACHE_ENTRIES
|
|
|
|
int "Number of maximum cache entries"
|
|
|
|
default 8
|
|
|
|
|
|
|
|
config NANOCOAP_CACHE_KEY_LENGTH
|
|
|
|
int "The length of the cache key in bytes"
|
|
|
|
default 8
|
|
|
|
|
|
|
|
config NANOCOAP_CACHE_RESPONSE_SIZE
|
|
|
|
int "Size of the buffer to store responses in the cache"
|
|
|
|
default 128
|
|
|
|
|
|
|
|
endif # KCONFIG_USEMODULE_NANOCOAP_CACHE
|
|
|
|
|
2020-08-31 09:33:35 +02:00
|
|
|
endif # KCONFIG_USEMODULE_NANOCOAP
|