From bb8d3cd72b818948a162c5e1bf680b456a838b69 Mon Sep 17 00:00:00 2001 From: Akshai M Date: Wed, 17 Jun 2020 20:25:53 +0530 Subject: [PATCH] sys/net/cord : Expose to Kconfig Expose configurations to Kconfig Co-authored-by: Leandro Lanzieri --- sys/net/application_layer/Kconfig | 1 + sys/net/application_layer/cord/Kconfig | 53 ++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 sys/net/application_layer/cord/Kconfig diff --git a/sys/net/application_layer/Kconfig b/sys/net/application_layer/Kconfig index b3d1dda5f7..67a826a995 100644 --- a/sys/net/application_layer/Kconfig +++ b/sys/net/application_layer/Kconfig @@ -14,4 +14,5 @@ rsource "nanocoap/Kconfig" endmenu # CoAP +rsource "cord/Kconfig" rsource "dhcpv6/Kconfig" diff --git a/sys/net/application_layer/cord/Kconfig b/sys/net/application_layer/cord/Kconfig new file mode 100644 index 0000000000..be5f55531c --- /dev/null +++ b/sys/net/application_layer/cord/Kconfig @@ -0,0 +1,53 @@ +# Copyright (c) 2020 Freie Universitaet Berlin +# +# 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. +# +menuconfig KCONFIG_USEMODULE_CORD + bool "Configure CoRE RD client" + depends on USEMODULE_CORD_COMMON + help + Configure the CoRE Resource Directory (RD) Endpoint and Lookup Client + using Kconfig. + +if KCONFIG_USEMODULE_CORD + +config CORD_LT + int "CORD client lifetime in seconds" + default 86400 + help + Configure 'CONFIG_CORD_LT', client lifetime in seconds. The default + value of 86400 seconds corresponds to 1 day. + +config CORD_UPDATE_INTERVAL_EN + bool "Enable configuration of RD client update interval" + help + Enable configuration of RD Client update interval. If not enabled, CORD + update interval will default to 3/4th the value of CORD client lifetime + ('CONFIG_CORD_LT'). + +config CORD_UPDATE_INTERVAL + int "CORD client update interval in seconds" + default 64800 + depends on CORD_UPDATE_INTERVAL_EN + help + Configure CORD client update interval in seconds. + +config CORD_EP_EN + bool "Enable configuration of node's endpoint ID" + help + Enable configuration of node's endpoint name. If not enabled, the ID is + generated by concatenation of 'CORD_EP_PREFIX', default value is 'RIOT-' + , and a locally unique ID (luid) encoded in hexadecimal formatting with + the given length of characters 'CORD_EP_SUFFIX_LEN', default value is + 16. + +config CORD_EP + string "Node's endpoint ID" + default "MyNewEpName" + depends on CORD_EP_EN + help + Configure node's endpoint ID. + +endif # KCONFIG_USEMODULE_CORD