• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2019 HAW Hamburg
2#
3# This file is subject to the terms and conditions of the GNU Lesser
4# General Public License v2.1. See the file LICENSE in the top level
5# directory for more details.
6#
7menuconfig KCONFIG_USEPKG_LIBCOAP
8    bool "Configure libcoap"
9    depends on USEPKG_LIBCOAP
10    help
11        Configure libcoap package via Kconfig.
12
13if KCONFIG_USEPKG_LIBCOAP
14
15choice LIBCOAP_DEBUG_LEVEL
16    bool "Set CoAP debugging level"
17    default LIBCOAP_LOG_DEBUG
18    help
19        Set CoAP debugging level
20
21    config LIBCOAP_LOG_EMERG
22        bool "Emergency"
23    config LIBCOAP_LOG_ALERT
24        bool "Alert"
25    config LIBCOAP_LOG_CRIT
26        bool "Critical"
27    config LIBCOAP_LOG_ERROR
28        bool "Error"
29    config LIBCOAP_LOG_WARNING
30        bool "Warning"
31    config LIBCOAP_LOG_NOTICE
32        bool "Notice"
33    config LIBCOAP_LOG_INFO
34        bool "Info"
35    config LIBCOAP_LOG_DEBUG
36        bool "Debug"
37    config LIBCOAP_LOG_OSCORE
38        bool "OSCORE"
39endchoice
40
41config LIBCOAP_MAX_LOGGING_LEVEL
42    int
43    default 0 if LIBCOAP_LOG_EMERG
44    default 1 if LIBCOAP_LOG_ALERT
45    default 2 if LIBCOAP_LOG_CRIT
46    default 3 if LIBCOAP_LOG_ERROR
47    default 4 if LIBCOAP_LOG_WARNING
48    default 5 if LIBCOAP_LOG_NOTICE
49    default 6 if LIBCOAP_LOG_INFO
50    default 7 if LIBCOAP_LOG_DEBUG
51    default 8 if LIBCOAP_LOG_OSCORE
52
53config LIBCOAP_IPV4_SUPPORT
54    bool "Enable IPv4 support within CoAP"
55    default n
56    help
57        Enable IPv4 functionality for CoAP.
58
59        If this option is disabled, redundant CoAP IPv4 code is removed.
60
61config LIBCOAP_IPV6_SUPPORT
62    bool "Enable IPv6 support within CoAP"
63    default y
64    help
65        Enable IPv6 functionality for CoAP.
66
67        If this option is disabled, redundant CoAP IPv6 code is removed.
68
69config LIBCOAP_TCP_SUPPORT
70    bool "Enable TCP support within CoAP"
71    default n
72    help
73        Enable TCP functionality for CoAP. This is required if TLS sessions
74        are to be used. Note that RIOT TCP support also needs to be enabled.
75
76        If this option is disabled, redundant CoAP TCP code is removed.
77
78config LIBCOAP_OSCORE_SUPPORT
79    bool "Enable OSCORE support within CoAP"
80    default n
81    help
82        Enable OSCORE functionality for CoAP.
83
84        If this option is disabled, redundant CoAP OSCORE code is removed.
85
86config LIBCOAP_OBSERVE_PERSIST
87    bool "Enable Observe persist support within CoAP"
88    default n
89    help
90        Enable Observe persist functionality for CoAP.
91
92        If this option is disabled, redundant CoAP Observe persist code is removed.
93
94config LIBCOAP_WS_SOCKET
95    bool "Enable WebSocket support within CoAP"
96    default n
97    help
98        Enable WebSocket functionality for CoAP.
99
100        If this option is disabled, redundant CoAP WebSocket code is removed.
101
102config LIBCOAP_Q_BLOCK_SUPPORT
103    bool "Enable Q-Block (RFC9177) support within CoAP"
104    default n
105    help
106        Enable Q-Block (RFC9177) functionality for CoAP.
107
108        If this option is disabled, redundant CoAP Q-Block code is removed.
109
110config LIBCOAP_ASYNC_SUPPORT
111    bool "Enable separate responses support within CoAP"
112    default y
113    help
114        Enable async separate responses functionality for CoAP.
115
116        If this option is disabled, redundent CoAP async separate responses code is removed.
117
118config LIBCOAP_CLIENT_SUPPORT
119    bool "Enable Client functionality within CoAP"
120    default n
121    help
122        Enable client functionality (ability to make requests and receive
123        responses) for CoAP. If the server is going to act as a proxy, then
124        this needs to be enabled to support the ongoing session going to
125        the next hop.
126
127        If this option is disabled, redundant CoAP client only code is
128        removed.
129        If both this option and LIBCOAP_SERVER_SUPPORT are disabled, then
130        both are automatically enabled for backwards compatability.
131
132config LIBCOAP_SERVER_SUPPORT
133    bool "Enable Server functionality within CoAP"
134    default n
135    help
136        Enable server functionality (ability to receive requests and send
137        responses) for CoAP.
138
139        If this option is disabled, redundant CoAP server only code is
140        removed.
141        If both this option and LIBCOAP_CLIENT_SUPPORT are disabled, then
142        both are automatically enabled for backwards compatability.
143
144config LIBCOAP_MAX_STRING_SIZE
145    int "Max size of string memory allocation"
146    default 64
147    help
148        The maximum size of a supported string.
149
150config LIBCOAP_MAX_STRINGS
151    int "Max number of strings supported"
152    default 16
153    help
154        The maximum number of supported strings.
155
156config LIBCOAP_MAX_ENDPOINTS
157    int "Max number of endpoints supported"
158    default 4
159    help
160        The maximum number of supported endpoints.
161
162config LIBCOAP_MAX_RESOURCES
163    int "Max number of resources supported"
164    default 8
165    help
166        The maximum number of supported resources.
167
168config LIBCOAP_MAX_ATTRIBUTE_SIZE
169    int "Max size of attribute memory allocation"
170    default 16
171    help
172        The maximum size of a supported attribute.
173
174config LIBCOAP_MAX_ATTRIBUTES
175    int "Max number of resource attributes supported"
176    default 32
177    help
178        The maximum number of supported resource attributes.
179
180config LIBCOAP_MAX_PACKETS
181    int "Max number of packets supported"
182    default 4
183    help
184        The maximum number of supported packets.
185
186config LIBCOAP_MAX_NODES
187    int "Max number of nodes supported"
188    default 16
189    help
190        The maximum number of supported nodes.
191
192config LIBCOAP_MAX_CONTEXTS
193    int "Max number of contexts supported"
194    default 1
195    help
196        The maximum number of supported contexts.
197
198config LIBCOAP_MAX_PDUS
199    int "Max number of PDUs supported"
200    default 16
201    help
202        The maximum number of supported PDUs.
203
204config LIBCOAP_MAX_DTLS_SESSIONS
205    int "Max number of DTLS sessions supported"
206    default 2
207    help
208        The maximum number of supported DTLS sessions.
209
210config LIBCOAP_MAX_SESSIONS
211    int "Max number of sessions supported"
212    default 4
213    help
214        The maximum number of supported sessions.
215
216config LIBCOAP_MAX_OPTION_SIZE
217    int "Max size of option memory allocation"
218    default 16
219    help
220        The maximum size of a supported options.
221
222config LIBCOAP_MAX_OPTIONS
223    int "Max number of options supported"
224    default 16
225    help
226        The maximum number of supported options.
227
228config LIBCOAP_MAX_CACHE_KEYS
229    int "Max number of cache keys supported"
230    default 2
231    help
232        The maximum number of supported cache keys.
233
234config LIBCOAP_MAX_CACHE_ENTRIES
235    int "Max number of cache entries supported"
236    default 2
237    help
238        The maximum number of supported cache entries.
239
240config LIBCOAP_MAX_LG_CRCVS
241    int "Max number of client large receives supported"
242    default 1
243    help
244        The maximum number of supported client large receives.
245
246config LIBCOAP_MAX_LG_SRCVS
247    int "Max number of server large receives supported"
248    default 2
249    help
250        The maximum number of supported server large receives.
251
252config LIBCOAP_MAX_LG_XMITS
253    int "Max number of large transmits supported"
254    default 2
255    help
256        The maximum number of supported large trqnsmits.
257
258endif # KCONFIG_USEPKG_LIBCOAP
259