1menu "Example CoAP Server Configuration"
2
3    config EXAMPLE_COAP_PSK_KEY
4        string "Preshared Key (PSK) to used in the connection from the CoAP client"
5        depends on COAP_MBEDTLS_PSK
6        default "secret-key"
7        help
8            The Preshared Key to use to encrypt the communicatons. The same key must be
9            used at both ends of the CoAP connection, and the CoaP client must request
10            an URI prefixed with coaps:// instead of coap:// for DTLS to be used.
11
12    choice EXAMPLE_COAP_MCAST_IP_MODE
13        prompt "Receive Multicast IP type"
14        help
15            Example can receive multicast IPV4, IPV6, both or none.
16
17        config EXAMPLE_COAP_MCAST_NONE
18            bool "None"
19
20        config EXAMPLE_COAP_MCAST_IPV4_V6
21            bool "IPV4 & IPV6"
22            select EXAMPLE_COAP_MCAST_IPV4
23            select EXAMPLE_COAP_MCAST_IPV6
24
25        config EXAMPLE_COAP_MCAST_IPV4_ONLY
26            bool "IPV4"
27            select EXAMPLE_COAP_MCAST_IPV4
28
29        config EXAMPLE_COAP_MCAST_IPV6_ONLY
30            bool "IPV6"
31            select EXAMPLE_COAP_MCAST_IPV6
32
33    endchoice
34
35    config EXAMPLE_COAP_MCAST_IPV4
36        bool
37    config EXAMPLE_COAP_MCAST_IPV6
38        bool
39        select EXAMPLE_CONNECT_IPV6 if IDF_TARGET_ESP32
40
41    config EXAMPLE_COAP_MULTICAST_IPV4_ADDR
42        string "CoAP Multicast IPV4 Address (receive)"
43        default "224.0.1.187"
44        depends on EXAMPLE_COAP_MCAST_IPV4
45        help
46            IPV4 multicast address to receive multicast traffic on.
47
48            The default CoAP IPV4 address is 224.0.1.187.
49
50    config EXAMPLE_COAP_MULTICAST_IPV6_ADDR
51        string "CoAP Multicast IPV6 Address (receive)"
52        default "FF02::FD"
53        depends on EXAMPLE_COAP_MCAST_IPV6
54        help
55            IPV6 multicast address to receive multicast traffic on.
56
57            The default CoAP FF02::FD address is a link-local multicast address.
58            Consult IPV6 specifications or documentation for information about
59            meaning of different IPV6 multicast ranges.
60
61endmenu
62