Forgot to add files :X.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 36 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 53 KiB After Width: | Height: | Size: 34 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 48 KiB |
+9
-4
@@ -1,19 +1,24 @@
|
|||||||
<html>
|
<html>
|
||||||
<head><title>Esp8266 web server</title></head>
|
<head><title>Esp8266 web server</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>it Works</h1>
|
<div id="main">
|
||||||
|
<h1>It Works</h1>
|
||||||
<p>
|
<p>
|
||||||
If you see this, it means the tiny li'l website in your ESP8266 does actually work.
|
If you see this, it means the tiny li'l website in your ESP8266 does actually work.
|
||||||
<ul>
|
<ul>
|
||||||
<li>If you haven't connected this device to your WLAN network now, you can <a href="/wifi">do so.</a></li>
|
<li>If you haven't connected this device to your WLAN network now, you can <a href="/wifi">do so.</a></li>
|
||||||
<li>You can also control the <a href="led.tpl">LED</a>.</li>
|
<li>You can also control the <a href="led.tpl">LED</a>.</li>
|
||||||
<li>And because I can, here's a link to my <a href="http://spritesmods.com/">website</a></ul>
|
<li>You can download the raw <a href="flash.bin">contents</a> of the SPI flash rom</li>
|
||||||
|
<li>And because I can, here's a link to my <a href="http://spritesmods.com/?f=esphttpd">website</a></ul>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>And because we're on the Internets now, here are the required pictures of some cats:<br />
|
<p>And because we're on the Internets now, here are the required pictures of cats:<br />
|
||||||
<img src="cats/cross-eyed-cat.jpg"><br />
|
<img src="cats/cross-eyed-cat.jpg"><br />
|
||||||
<img src="cats/junge-katze-iv.jpg"><br />
|
<img src="cats/junge-katze-iv.jpg"><br />
|
||||||
<img src="cats/kitten-loves-toy.jpg"><br />
|
<img src="cats/kitten-loves-toy.jpg"><br />
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|||||||
+6
-3
@@ -1,6 +1,9 @@
|
|||||||
<html><head><title>Test</title></head>
|
<html><head><title>Test</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="main">
|
||||||
|
<h1>The LED</h1>
|
||||||
<p>
|
<p>
|
||||||
If there's a LED connected to GPIO2, it's now %ledstate%. You can change that using the buttons below.
|
If there's a LED connected to GPIO2, it's now %ledstate%. You can change that using the buttons below.
|
||||||
</p>
|
</p>
|
||||||
@@ -8,5 +11,5 @@ If there's a LED connected to GPIO2, it's now %ledstate%. You can change that us
|
|||||||
<input type="submit" name="led" value="1">
|
<input type="submit" name="led" value="1">
|
||||||
<input type="submit" name="led" value="0">
|
<input type="submit" name="led" value="0">
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
</body></html>
|
</body></html>
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<html><head><title>WiFi connection</title>
|
<html><head><title>WiFi connection</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="style.css">
|
||||||
<script type="text/javascript" src="140medley.min.js"></script>
|
<script type="text/javascript" src="140medley.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
@@ -60,6 +61,7 @@ window.onload=function(e) {
|
|||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
<div id="main">
|
||||||
<p>
|
<p>
|
||||||
Current WiFi mode: %WiFiMode%
|
Current WiFi mode: %WiFiMode%
|
||||||
</p>
|
</p>
|
||||||
@@ -72,3 +74,6 @@ WiFi password, if applicable: <br />
|
|||||||
<input type="text" name="passwd" val="%WiFiPasswd%"> <br />
|
<input type="text" name="passwd" val="%WiFiPasswd%"> <br />
|
||||||
<input type="submit" name="connect" value="Connect!">
|
<input type="submit" name="connect" value="Connect!">
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ int ICACHE_FLASH_ATTR cgiLed(HttpdConnData *connData) {
|
|||||||
ioLed(currLedState);
|
ioLed(currLedState);
|
||||||
}
|
}
|
||||||
|
|
||||||
httpdRedirect(connData, "led.html");
|
httpdRedirect(connData, "led.tpl");
|
||||||
return HTTPD_CGI_DONE;
|
return HTTPD_CGI_DONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@
|
|||||||
#include "stdout.h"
|
#include "stdout.h"
|
||||||
|
|
||||||
HttpdBuiltInUrl builtInUrls[]={
|
HttpdBuiltInUrl builtInUrls[]={
|
||||||
{"/", cgiRedirect, "/test2.html"},
|
{"/", cgiRedirect, "/index.html"},
|
||||||
{"/flash.bin", cgiReadFlash, NULL},
|
{"/flash.bin", cgiReadFlash, NULL},
|
||||||
{"/led.tpl", cgiEspFsTemplate, tplLed},
|
{"/led.tpl", cgiEspFsTemplate, tplLed},
|
||||||
{"/led.cgi", cgiLed, NULL},
|
{"/led.cgi", cgiLed, NULL},
|
||||||
|
|||||||
Reference in New Issue
Block a user