f27bc0f452
* wificfg: remove the AP WEP mode option The WEP mode does not appear to be implement in the sdk for the AP mode, and defaults to open when WEP is requested which is probably not intended. Remove the WEP option from the wifi config interface. * lwip: enable mdns dns queries. * wificfg: support mDNS on the softAP interface.
71 lines
3.1 KiB
HTML
71 lines
3.1 KiB
HTML
"<!DOCTYPE html><html lang=\"en\">"
|
|
"<head>"
|
|
"<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\">"
|
|
"<script src=\"/script.js\"></script>"
|
|
"<title>",
|
|
"</title>"
|
|
"<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">"
|
|
"</head>"
|
|
"<body>"
|
|
"<ul class=\"topnav\" id=\"myTopnav\">"
|
|
"<li><a href=\"/\">Home</a></li>"
|
|
"<li><a href=\"/wificfg/\">WiFi Config</a></li>"
|
|
"<li class=\"active\"><a href=\"/wificfg/sta.html\">WiFi Station</a></li>"
|
|
"<li><a href=\"/wificfg/ap.html\">WiFi Access Point</a></li>"
|
|
"<li class=\"icon\">"
|
|
"<a href=\"javascript:void(0);\" onclick=\"myFunction()\">☰</a>"
|
|
"</li>"
|
|
"</ul>"
|
|
"<form action=\"/wificfg/sta.html\" method=\"post\">"
|
|
"<fieldset>"
|
|
"<legend>WiFi Station configuration</legend>"
|
|
"<dl class=\"dlh\">"
|
|
"<dt><label for=\"enable\">Enable Station mode</label></dt>"
|
|
"<dd><input id=\"enable\" type=\"checkbox\" name=\"sta_enable\" value=\"1\" ",
|
|
" /></dd>"
|
|
"<dt><label for=\"disabled_restarts\">Disabled restarts</label></dt>"
|
|
"<dd><input id=\"disabled_restarts\" type=\"number\" size=\"2\" min=\"0\" step=\"1\" "
|
|
"name=\"sta_disabled_restarts\" placeholder=\"0\" value=\"",
|
|
"\" /></dd>"
|
|
"<dt><label for=\"ssid\">SSID</label></dt>"
|
|
"<dd><input id=\"ssid\" minlength=\"1\" maxlength=\"31\" type=\"text\" name=\"sta_ssid\" "
|
|
"placeholder=\"my access point\" value=\"",
|
|
"\"></dd>"
|
|
"<dt><label for=\"pw\">Password</label></dt>"
|
|
"<dd><input id=\"pw\" type=\"text\" minlength=\"8\" maxlength=\"63\" name=\"sta_password\" "
|
|
"placeholder=\"password\" value=\"",
|
|
"\"></dd>"
|
|
"<dt><label for=\"hostname\">Hostname</label></dt>"
|
|
"<dd><input id=\"hostname\" type=\"text\" maxlength=\"63\" name=\"hostname\" "
|
|
"placeholder=\"device-hostname\" value=\"",
|
|
"\"></dd>"
|
|
"<dt><label for=\"dhcp\">Enable DHCP</label></dt>"
|
|
"<dd><input id=\"dhcp\" type=\"radio\" name=\"sta_dhcp\" value=\"1\" ",
|
|
" /></dd>"
|
|
"<dt><label for=\"static\">Disable DHCP (static address below)</label></dt>"
|
|
"<dd><input id=\"static\" type=\"radio\" name=\"sta_dhcp\" value=\"0\" ",
|
|
" /></dd>"
|
|
"<dt><label for=\"ip\">Static IP Address</label></dt>"
|
|
"<dd><input id=\"ip\" type=\"text\" maxlength=\"15\" size=\"15\" "
|
|
"pattern=\"(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)_*(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)_*){3}\" "
|
|
"name=\"sta_ip_addr\" placeholder=\"192.168.1.50\" value=\"",
|
|
"\"></dd>"
|
|
"<dt><label for=\"nm\">Static Netmask</label></dt>"
|
|
"<dd><input id=\"nm\" type=\"text\" maxlength=\"15\" size=\"15\" "
|
|
"pattern=\"(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)_*(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)_*){3}\" "
|
|
"name=\"sta_netmask\" placeholder=\"255.255.255.0\" value=\"",
|
|
"\"></dd>"
|
|
"<dt><label for=\"gw\">Static Gateway</label></dt>"
|
|
"<dd><input id=\"gw\" type=\"text\" maxlength=\"15\" size=\"15\" "
|
|
"pattern=\"(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)_*(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)_*){3}\" "
|
|
"name=\"sta_gateway\" placeholder=\"192.168.1.1\" value=\"",
|
|
"\"></dd>"
|
|
"<dt><label for=\"mdns\">mDNS enabled</label></dt>"
|
|
"<dd><input id=\"mdns\" type=\"checkbox\" name=\"sta_mdns\" value=\"1\" ",
|
|
" /></dd>"
|
|
"</dl>"
|
|
"<center><input type=\"reset\"> <input type=\"submit\" value=\"Save\"></center>"
|
|
"</fieldset>"
|
|
"<input type=\"hidden\" name=\"done\">"
|
|
"</form>"
|
|
"</body></html>"
|