1menu "Example Configuration"
2
3    config EXAMPLE_WIFI_SSID
4        string "WiFi SSID"
5        default "myssid"
6        help
7            SSID (network name) for the example to connect to.
8
9    config EXAMPLE_WIFI_PASSWORD
10        string "WiFi Password"
11        default "mypassword"
12        help
13            WiFi password (WPA or WPA2) for the example to use.
14
15    config EXAMPLE_MAXIMUM_RETRY
16        int "Maximum retry"
17        default 5
18        help
19            Set the Maximum retry to avoid station reconnecting to the AP unlimited when the AP is really inexistent.
20
21    config EXAMPLE_STATIC_IP_ADDR
22        string "Static IP address"
23        default "192.168.4.2"
24        help
25            Set static IP address.
26
27    config EXAMPLE_STATIC_NETMASK_ADDR
28        string "Static netmask address"
29        default "255.255.255.0"
30        help
31            Set static netmask address.
32
33    config EXAMPLE_STATIC_GW_ADDR
34        string "Static gateway address"
35        default "192.168.4.1"
36        help
37            Set static gateway address.
38
39    choice EXAMPLE_STATIC_DNS_SERVER
40        prompt "Choose DNS server"
41        default EXAMPLE_STATIC_DNS_AUTO
42        help
43            Select auto to make gateway address as DNS server or manual to input your DNS server
44        config EXAMPLE_STATIC_DNS_AUTO
45            bool "Use gateway address as DNS server"
46            help
47                Set DNS server the same as gateway address
48
49        config EXAMPLE_STATIC_DNS_MANUAL
50            bool "Set manual value as DNS server"
51            help
52                Set DNS server with you want
53    endchoice
54
55    config EXAMPLE_STATIC_DNS_SERVER_MAIN
56        string "Main DNS server address"
57        default "192.168.4.1"
58        depends on EXAMPLE_STATIC_DNS_MANUAL
59        help
60            Set main DNS server address.
61
62    config EXAMPLE_STATIC_DNS_SERVER_BACKUP
63        string "Backup DNS server address"
64        default "192.168.4.1"
65        depends on EXAMPLE_STATIC_DNS_MANUAL
66        help
67            Set backup DNS server address. It can be same with the main DNS server address or leave empty.
68
69    config EXAMPLE_STATIC_DNS_RESOLVE_TEST
70        bool "Enable DNS resolve test"
71        default n
72        help
73            Enable it and configure EXAMPLE_STATIC_RESOLVE_DOMAIN to resolve DNS domain name
74
75    config EXAMPLE_STATIC_RESOLVE_DOMAIN
76        string "Domain name to resolve"
77        default "www.espressif.com"
78        depends on EXAMPLE_STATIC_DNS_RESOLVE_TEST
79        help
80            Set domain name for DNS test
81endmenu
82