Table of Contents


ESP-HTTPD

esp-httpd is a web server running directly on the ESP8266, created by Sprite_tm.

Building it

Let's use ESP8266. It makes things way easier. You can clone the esp-httpd repo from http://git.spritesserver.nl/esphttpd.git/. Once you do that, you should fix the following patch to point to your esp-open-sdk installation and apply it to the Makefile. You also need esptool, the C one. Here's the tarball. The binary's in there. Just point the ESPTOOL variable at the binary.

diff --git a/Makefile b/Makefile
index 5545fc9..3ff077d 100644
--- a/Makefile
+++ b/Makefile
@@ -12,17 +12,17 @@ BUILD_BASE	= build
 FW_BASE		= firmware
 
 # Base directory for the compiler
-XTENSA_TOOLS_ROOT ?= /opt/Espressif/crosstool-NG/builds/xtensa-lx106-elf/bin
+XTENSA_TOOLS_ROOT ?= /home/liam/projects/esp8266/esp-open-sdk/xtensa-lx106-elf/bin
 
 #Extra Tensilica includes from the ESS VM
-SDK_EXTRA_INCLUDES ?= /opt/Espressif/include
-SDK_EXTRA_LIBS ?= /opt/Espressif/arch/lib
+SDK_EXTRA_INCLUDES ?= /home/liam/projects/esp8266/esp-open-sdk/sdk/include
+SDK_EXTRA_LIBS ?= /home/liam/projects/esp8266/esp-open-sdk/sdk/lib
 
 # base directory of the ESP8266 SDK package, absolute
-SDK_BASE	?= /opt/Espressif/ESP8266_SDK
+SDK_BASE	?= /home/liam/projects/esp8266/esp-open-sdk/esp_iot_sdk_v0.9.3
 
 #Esptool.py path and port
-ESPTOOL		?= esptool
+ESPTOOL		?= /home/liam/projects/esp8266/esptool/esptool
 ESPPORT		?= /dev/ttyUSB0
 #ESPDELAY indicates seconds to wait between flashing the two binary images
 ESPDELAY	?= 3