take-i / esphttpd

test src. check the sdk 1.3.0.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

new esphttpd

esp-httpd

Background

Web-server for Espressif ESP8266/EX chips. Sprite started the project and billprozac continued, adding OTA functionality and few more things.

I re-wrote the whole project, fixed and added few more other things.

Firmware features

  • Web server
    • Multiple connections
    • CGI routines
    • HTML tokens replacement
  • Filesystem support
    • Compression support (Heatshrink)
  • OTA
  • Documentation and code-readability

Changelog

For changelog from billprozac's version look at changelog.md.

Main esphttpd development by Sprite is available at Sprite's git.

Sample project

  • web-server available at 192.168.4.1
  • GPIOs are reset to state 0 on initialization
  • index.tpl displays a sample switch which changes its state on-click, and keeps its state on server-side
    • the switch on index.tpl controls both GPIOs' states
  • WiFi settings enable switching between modes as usual

Setup

Step-by-step guide is available here.

In short, follow the instructions on esp-open-sdk, then customize makefile parameters to match for your own environment:

  • XTENSA_TOOLS_ROOT
  • SDK_EXTRA_INCLUDES
  • SDK_EXTRA_LIBS
  • SDK_ROOT
  • SDK_VERSION

Git

Note: I recommend to change manually lib\heatshrink\heatshrink_config.h to use:

  • #define HEATSHRINK_MALLOC(SZ) os_malloc(SZ)
  • #define HEATSHRINK_FREE(P, SZ) os_free(P)

just in case to prevent compiling errors.

Compiling

Have a look at config.h and set your own settings, then compile as usual. For example, to compile an OTA version:

make clean

make rawflash OTA=true

Development

Main project is available at Sprite's git. I decided to share my work in case someone will find it useful for his own needs. I'll be updating it sometimes; if you'd like some features to be added or meet any bugs, feel free to contact me.

izhak2@gmail.com tak2bnk@gmail.com

About

test src. check the sdk 1.3.0.


Languages

Language:C 94.6%Language:Makefile 3.6%Language:Smarty 1.3%Language:Python 0.5%Language:HTML 0.0%