This is an old revision of the document!


Project owner: lichnak, PeterBay
Interested:
Related:
Reference: https://Espressif.com
License: Uveďte původ-Zachovejte licenci; CC BY-SA

NodeMCU HTTP Server

PB hero

Deploy httpd to ESP8266

  • Copy file httpd.c to folder app/modules/
  cp httpd.c ~/nodemcu-firmware/nodemcu-firmware-2.0.0-master_20170202/app/modules/
  • Edit file app/include/user_modules.h and add one line to user modules.
mcedit ~/nodemcu-firmware/nodemcu-firmware-2.0.0-master_20170202/app/include/user_modules.h

#define LUA_USE_MODULES_HTTPD
  • Compile firmware as was descibed here.
  • Upload firmware to ESP8266 as was descibed for Windows 10 here and for Ubuntu here
  • Connect nodeMCU to USB
  • Open ESPlorer
  • Upload httpd files to ESP8266
  • Configure ext_wifi_settings.lua for WiFi connection strings
  • Execute on ESP8266 Lua script assemble.lua
  • Open http://nodeMCU-IP-Address in Web browser
  • project/nodemcu_httpd/en.1489322933.txt.gz
  • Last modified: 2017/03/12 13:48
  • by licho