2017-03-21 12:06:32 +00:00
|
|
|
menu "Example Configuration"
|
|
|
|
|
|
|
|
#choice
|
2017-04-10 12:39:04 +00:00
|
|
|
# prompt "UDP_PERF_MODE "
|
|
|
|
# default MODE_UDP_SHIELDBOX
|
2017-03-21 12:06:32 +00:00
|
|
|
# help
|
|
|
|
# This option set performance mode.
|
|
|
|
#
|
2017-03-31 08:34:12 +00:00
|
|
|
# - Testing in shieldbox for "Performance in shieldbox" setting.
|
|
|
|
#
|
|
|
|
# - Testing in air for "Performance in air" setting.
|
|
|
|
#
|
|
|
|
# - Testing in long distance for "Performance in long distance" setting.
|
2017-03-21 12:06:32 +00:00
|
|
|
#
|
|
|
|
#
|
|
|
|
#config MODE_UDP_SHIELDBOX
|
|
|
|
# bool "Performance in shieldbox"
|
|
|
|
#config MODE_UDP_AIR
|
|
|
|
# bool "Performance in air"
|
|
|
|
#config MODE_UDP_LONG_DISTANCE
|
|
|
|
# bool "Performance in long distance"
|
|
|
|
#endchoice
|
|
|
|
#
|
2017-04-10 12:39:04 +00:00
|
|
|
|
|
|
|
choice UDP_PERF_WIFI_MODE
|
|
|
|
prompt "AP or STA"
|
|
|
|
default UDP_PERF_ESP_IS_STATION
|
|
|
|
help
|
|
|
|
Whether the esp32 is softAP or station.
|
|
|
|
|
|
|
|
config UDP_PERF_ESP_IS_SOFTAP
|
|
|
|
bool "SoftAP"
|
|
|
|
config UDP_PERF_ESP_IS_STATION
|
|
|
|
bool "Station"
|
|
|
|
endchoice
|
|
|
|
|
2017-03-21 12:06:32 +00:00
|
|
|
config UDP_PERF_WIFI_MODE_AP
|
2017-04-10 12:39:04 +00:00
|
|
|
bool
|
|
|
|
default y if UDP_PERF_ESP_IS_SOFTAP
|
|
|
|
default n if UDP_PERF_ESP_IS_STATION
|
2017-03-21 12:06:32 +00:00
|
|
|
|
2017-04-10 12:39:04 +00:00
|
|
|
choice UDP_PERF_SERVER_CLIENT
|
|
|
|
prompt "server or client"
|
|
|
|
default UDP_PERF_ESP_IS_CLIENT
|
|
|
|
help
|
|
|
|
Whether the esp32 is tcp server or client.
|
2017-03-21 12:06:32 +00:00
|
|
|
|
2017-04-10 12:39:04 +00:00
|
|
|
We suggest to choose "client" if you choose "station" in "wifi mode".
|
|
|
|
|
|
|
|
config UDP_PERF_ESP_IS_SERVER
|
|
|
|
bool "server"
|
|
|
|
config UDP_PERF_ESP_IS_CLIENT
|
|
|
|
bool "client"
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
config UDP_PERF_SERVER
|
|
|
|
bool
|
|
|
|
default y if UDP_PERF_ESP_IS_SERVER
|
|
|
|
default n if UDP_PERF_ESP_IS_CLIENT
|
|
|
|
|
|
|
|
choice UDP_PERF_TX_RX
|
|
|
|
prompt "send or receive"
|
|
|
|
default UDP_PERF_ESP_RECV
|
|
|
|
help
|
|
|
|
Whether the esp32 will send or receive.
|
|
|
|
|
|
|
|
config UDP_PERF_ESP_SEND
|
|
|
|
bool "send"
|
|
|
|
config UDP_PERF_ESP_RECV
|
|
|
|
bool "receive"
|
|
|
|
endchoice
|
2017-03-21 12:06:32 +00:00
|
|
|
|
|
|
|
config UDP_PERF_TX
|
2017-04-10 12:39:04 +00:00
|
|
|
bool
|
|
|
|
default y if UDP_PERF_ESP_SEND
|
|
|
|
default n if UDP_PERF_ESP_RECV
|
|
|
|
|
2017-03-21 12:06:32 +00:00
|
|
|
|
|
|
|
config UDP_PERF_WIFI_SSID
|
|
|
|
string "WiFi SSID"
|
2017-04-13 11:14:01 +00:00
|
|
|
default "esp_wifi_test1"
|
|
|
|
help
|
|
|
|
SSID (network name) for the example to connect to.
|
2017-03-21 12:06:32 +00:00
|
|
|
|
|
|
|
config UDP_PERF_WIFI_PASSWORD
|
|
|
|
string "WiFi Password"
|
2017-04-13 11:14:01 +00:00
|
|
|
default "1234567890"
|
|
|
|
help
|
|
|
|
WiFi password (WPA or WPA2) for the example to use.
|
2017-03-21 12:06:32 +00:00
|
|
|
|
2017-04-10 12:39:04 +00:00
|
|
|
config UDP_PERF_SERVER_PORT
|
|
|
|
int "UDP server port"
|
2017-04-13 11:14:01 +00:00
|
|
|
default 4567
|
|
|
|
help
|
|
|
|
Which will the udp server use.
|
2017-03-21 12:06:32 +00:00
|
|
|
|
|
|
|
config UDP_PERF_SERVER_IP
|
|
|
|
string "UDP server ip"
|
2017-04-13 11:14:01 +00:00
|
|
|
depends on UDP_PERF_ESP_IS_CLIENT
|
|
|
|
default "192.168.4.1"
|
|
|
|
help
|
|
|
|
IP of UDP server.
|
2017-03-21 12:06:32 +00:00
|
|
|
|
2017-04-13 11:14:01 +00:00
|
|
|
Ignore in UDP server.
|
2017-03-21 12:06:32 +00:00
|
|
|
|
|
|
|
config UDP_PERF_PKT_SIZE
|
|
|
|
int "Size of UDP packet"
|
2017-04-13 11:14:01 +00:00
|
|
|
default 1460
|
|
|
|
help
|
|
|
|
the data send&recv packet size.
|
2017-03-21 12:06:32 +00:00
|
|
|
|
|
|
|
endmenu
|