Skip to content

koltegirish/esphttpd-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

esphttpd by izhak2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 91.1%
  • Makefile 5.7%
  • Smarty 2.2%
  • Other 1.0%