1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

net/nanocoap: Expose configurations to Kconfig

This commit is contained in:
Leandro Lanzieri 2020-01-31 09:59:53 +01:00
parent e80dcf2d8b
commit 0137a06896
No known key found for this signature in database
GPG Key ID: 39607DE6080007A3
2 changed files with 38 additions and 0 deletions

View File

@ -7,5 +7,6 @@
menu "CoAP"
rsource "gcoap/Kconfig"
rsource "nanocoap/Kconfig"
endmenu # CoAP

View File

@ -0,0 +1,37 @@
# 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.
#
# Nanocoap provides CoAP functionalities
config MODULE_NANOCOAP
select HAS_PROTOCOL_COAP
menuconfig KCONFIG_MODULE_NANOCOAP
bool "Configure Nanocoap module"
depends on MODULE_NANOCOAP
if KCONFIG_MODULE_NANOCOAP
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
endif # KCONFIG_MODULE_NANOCOAP