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 folderapp/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.
- 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