index.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Served by an ESP8266</title>
  6. </head>
  7. <body>
  8. <h1>Hello World!</h1>
  9. <div align="center">
  10. <img src="underconstruction.gif">
  11. </div>
  12. <p>
  13. This page is served by <b>nodemcu-httpserver</b> running on an ESP8266 that uses the <a href="https://github.com/nodemcu/nodemcu-firmware">NodeMCU</a> firmware.
  14. NodeMCU puts a <a href="http://www.lua.org">Lua</a> interpreter inside the ESP8266. This is surely one of the smallest web servers to date!
  15. </p>
  16. <h3>Where's the source code?</h3>
  17. <p>You can find the Lua code for nodemcu-httpserver in <a href="https://github.com/marcoskirsch/nodemcu-httpserver">GitHub</a></p>
  18. <h3>Serve me some pages!</h3>
  19. <ul>
  20. <li><a href="index.html">Index</a>: This page (static)</li>
  21. <li><a href="cars.html">Nice cars</a>: Stress test, loads 4 "large" images. Makes the chip panic and restart :( (static)</li>
  22. <li><a href="zipped.html">Zipped</a>: File is actually saved as zipped.html.gz. A compressed file! (static but gzipped)</li>
  23. <li><a href="zipped.html.gz">Zipped</a>: Same exact file as served above. Server is smart enough to treat the .gz extension correctly (static but gzipped)</li>
  24. <li><a href="args.lua">Arguments</a>: Parses arguments passed in the URL and prints them. (Lua)</li>
  25. <li><a href="post.lua">Post</a>: A form that uses POST method. Displays different content based on HTTP method. (Lua)</li>
  26. <li><a href="garage_door_opener.html">Garage door opener</a>: Control GPIO lines via the server. (Lua)</li>
  27. <li><a href="node_info.lua">NodeMCU info</a>: Shows some basic NodeMCU(Lua)</li>
  28. <li><a href="file_list.lua">List all server files</a>: Displays a list of all the server files. (Lua)</li>
  29. <li><a href="foo.html">Foo</a>: A file that doesn't exist. Should error (404 error)</li>
  30. </ul>
  31. </body>
  32. </html>