diff --git a/html/cats/cross-eyed-cat.jpg b/html/cats/cross-eyed-cat.jpg index 72deba6..e166e87 100644 Binary files a/html/cats/cross-eyed-cat.jpg and b/html/cats/cross-eyed-cat.jpg differ diff --git a/html/cats/junge-katze-iv.jpg b/html/cats/junge-katze-iv.jpg index 803bbb0..c3cf70b 100644 Binary files a/html/cats/junge-katze-iv.jpg and b/html/cats/junge-katze-iv.jpg differ diff --git a/html/cats/kitten-loves-toy.jpg b/html/cats/kitten-loves-toy.jpg index 8965447..569ff56 100644 Binary files a/html/cats/kitten-loves-toy.jpg and b/html/cats/kitten-loves-toy.jpg differ diff --git a/html/index.html b/html/index.html index dbfb47a..feab1f5 100644 --- a/html/index.html +++ b/html/index.html @@ -1,19 +1,24 @@ -Esp8266 web server +Esp8266 web server + + -

it Works

+
+

It Works

If you see this, it means the tiny li'l website in your ESP8266 does actually work.

+
  • You can download the raw contents of the SPI flash rom
  • +
  • And because I can, here's a link to my website

    -

    And because we're on the Internets now, here are the required pictures of some cats:
    +

    And because we're on the Internets now, here are the required pictures of cats:



    +
  • diff --git a/html/led.tpl b/html/led.tpl index 2290d60..7a9cf89 100644 --- a/html/led.tpl +++ b/html/led.tpl @@ -1,6 +1,9 @@ -Test +Test + + - +
    +

    The LED

    If there's a LED connected to GPIO2, it's now %ledstate%. You can change that using the buttons below.

    @@ -8,5 +11,5 @@ If there's a LED connected to GPIO2, it's now %ledstate%. You can change that us - +
    diff --git a/html/wifi/wifi.tpl b/html/wifi/wifi.tpl index 233716c..631b7bc 100644 --- a/html/wifi/wifi.tpl +++ b/html/wifi/wifi.tpl @@ -1,4 +1,5 @@ WiFi connection + +

    Current WiFi mode: %WiFiMode%

    @@ -72,3 +74,6 @@ WiFi password, if applicable:

    +
    + + diff --git a/user/cgi.c b/user/cgi.c index 679a418..70ba86e 100644 --- a/user/cgi.c +++ b/user/cgi.c @@ -40,7 +40,7 @@ int ICACHE_FLASH_ATTR cgiLed(HttpdConnData *connData) { ioLed(currLedState); } - httpdRedirect(connData, "led.html"); + httpdRedirect(connData, "led.tpl"); return HTTPD_CGI_DONE; } diff --git a/user/user_main.c b/user/user_main.c index 6b68fd6..be273ff 100644 --- a/user/user_main.c +++ b/user/user_main.c @@ -21,7 +21,7 @@ #include "stdout.h" HttpdBuiltInUrl builtInUrls[]={ - {"/", cgiRedirect, "/test2.html"}, + {"/", cgiRedirect, "/index.html"}, {"/flash.bin", cgiReadFlash, NULL}, {"/led.tpl", cgiEspFsTemplate, tplLed}, {"/led.cgi", cgiLed, NULL},