OVMS3-idf/examples/performance/tcp_perf/main/Kconfig.projbuild

120 lines
2.5 KiB
Text
Raw Normal View History

menu "Example Configuration"
#choice
2017-04-10 12:39:04 +00:00
# prompt "TCP_PERF_MODE "
# default MODE_TCP_SHIELDBOX
# help
# This option set performance mode.
#
# - 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.
#
#
#config MODE_TCP_SHIELDBOX
# bool "Performance in shieldbox"
#config MODE_TCP_AIR
# bool "Performance in air"
#config MODE_TCP_LONG_DISTANCE
# bool "Performance in long distance"
#endchoice
2017-04-10 12:39:04 +00:00
choice TCP_PERF_WIFI_MODE
prompt "AP or STA"
default TCP_PERF_ESP_IS_STATION
help
Whether the esp32 is softAP or station.
config TCP_PERF_ESP_IS_SOFTAP
bool "SoftAP"
config TCP_PERF_ESP_IS_STATION
bool "Station"
endchoice
config TCP_PERF_WIFI_MODE_AP
2017-04-10 12:39:04 +00:00
bool
default y if TCP_PERF_ESP_IS_SOFTAP
default n if TCP_PERF_ESP_IS_STATION
2017-04-10 12:39:04 +00:00
choice TCP_PERF_SERVER_CLIENT
prompt "server or client"
default TCP_PERF_ESP_IS_CLIENT
help
Whether the esp32 is tcp server or client.
2017-04-10 12:39:04 +00:00
We suggest to choose "client" if you choose "station" in "wifi mode".
config TCP_PERF_ESP_IS_SERVER
bool "server"
config TCP_PERF_ESP_IS_CLIENT
bool "client"
endchoice
config TCP_PERF_SERVER
bool
default y if TCP_PERF_ESP_IS_SERVER
default n if TCP_PERF_ESP_IS_CLIENT
choice TCP_PERF_TX_RX
prompt "send or receive"
default TCP_PERF_ESP_RECV
help
Whether the esp32 will send or receive.
config TCP_PERF_ESP_SEND
bool "send"
config TCP_PERF_ESP_RECV
bool "receive"
endchoice
config TCP_PERF_TX
2017-04-10 12:39:04 +00:00
bool
default y if TCP_PERF_ESP_SEND
default n if TCP_PERF_ESP_RECV
config TCP_PERF_DELAY_DEBUG
bool "TCP performance delay info enable"
2017-04-10 12:39:04 +00:00
depends on TCP_PERF_TX
default n
help
Show TCP performance delay info.
2017-04-10 12:39:04 +00:00
Ignore in TCP RX.
config TCP_PERF_WIFI_SSID
string "WiFi SSID"
2017-04-10 12:39:04 +00:00
default "esp_wifi_test1"
help
SSID (network name) for the example to connect to.
config TCP_PERF_WIFI_PASSWORD
string "WiFi Password"
2017-04-10 12:39:04 +00:00
default "1234567890"
help
WiFi password (WPA or WPA2) for the example to use.
2017-04-10 12:39:04 +00:00
config TCP_PERF_SERVER_PORT
int "TCP server port"
default 4567
help
Which will the tcp server use.
config TCP_PERF_SERVER_IP
string "TCP server ip"
depends on TCP_PERF_ESP_IS_CLIENT
2017-04-10 12:39:04 +00:00
default "192.168.4.1"
help
IP of TCP server.
2017-04-10 12:39:04 +00:00
Ignore in TCP server.
config TCP_PERF_PKT_SIZE
int "Size of TCP packet"
2017-04-10 12:39:04 +00:00
default 1460
help
the data send&recv packet size.
endmenu