forked from espressif/esp-idf
fix(sta2eth): Document security considerations in sta2eth example
This commit is contained in:
@@ -12,6 +12,8 @@ This example aims to demonstrate 1-1 bridge using WiFi station and one of these
|
||||
It also allows for reconfiguring WiFi settings using a virtual network in the Ethernet. The reconfiguration mode is initialized if the WiFi settings are not available, connection fails or manually by long pressing the Boot button (GPIO0).
|
||||
It is possible to configure WiFi settings (SSID and password) in a browser on a hostname `"http://wifi.settings"` or using unified provisioning.
|
||||
|
||||
Note: This page is intended solely for initial setup and is not recommended for production use, as it lacks any security measures—data is transmitted in plain text over HTTP. For secure, production-grade configuration, we recommend using the default option: unified provisioning.
|
||||
|
||||
## How to use example
|
||||
|
||||
This example could be used to *bring* wireless connectivity to devices that support only Ethernet (or USB Ethernet implemented as NCM device).
|
||||
|
@@ -4,7 +4,7 @@ menu "Example Configuration"
|
||||
|
||||
choice EXAMPLE_WIFI_CONFIGURATION
|
||||
prompt "WiFi configuration"
|
||||
default EXAMPLE_WIFI_CONFIGURATION_MANUAL
|
||||
default EXAMPLE_WIFI_CONFIGURATION_PROVISIONING
|
||||
help
|
||||
Choose how the WiFi settings should be configured.
|
||||
|
||||
|
@@ -32,7 +32,8 @@ bool is_provisioned(void)
|
||||
|
||||
static esp_err_t http_get_handler(httpd_req_t *req)
|
||||
{
|
||||
const char page[] = "<form action=\"/\" method=\"get\"><br><br>\n"
|
||||
const char page[] = "<h3>WARNING: Configuring Wi-Fi credentials on this page is not secure</h3>\n"
|
||||
"<form action=\"/\" method=\"get\"><br><br>\n"
|
||||
"SSID: <input type=\"text\" id=\"ssid\" name=\"ssid\"><br><br>\n"
|
||||
"Password: <input type=\"text\" id=\"password\" name=\"password\"><br><br>\n"
|
||||
" <input type=\"submit\" value=\"Connect\">"
|
||||
|
Reference in New Issue
Block a user