Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
project:nodemcu_httpd:en [2017/03/12 15:14]
licho
project:nodemcu_httpd:en [2017/03/25 10:44] (current)
licho
Line 3: Line 3:
 |**Related:​**| | |**Related:​**| |
 |**Reference:​**| https://​Espressif.com | |**Reference:​**| https://​Espressif.com |
-| **License:​** | [[http://​creativecommons.org/​licenses/​by-sa/​4.0/​|Creative Commons ​Attribution-ShareAlike;​ CC BY-SA]] ​ |+| **License:​** | [[http://​creativecommons.org/​licenses/​by-sa/​4.0/​|Attribution-ShareAlike ​4.0 International; CC BY-SA]] ​ |
 ====== NodeMCU HTTP Server ====== ====== NodeMCU HTTP Server ======
-PB hero+[[user:​peterbay,​|PeterBay]] ​hero
  
 === Deploy httpd to ESP8266 === === Deploy httpd to ESP8266 ===
 +  * Download ''​httpd.c''​ [[https://​raw.githubusercontent.com/​lichnak/​nodemcu-labka/​master/​src/​node_server_20170311/​firmware/​httpd.c|here.]]
   * Copy file ''​httpd.c''​ to folder ''​app/​modules/''​   * Copy file ''​httpd.c''​ to folder ''​app/​modules/''​
 <​code>​ <​code>​
Line 18: Line 19:
 #define LUA_USE_MODULES_HTTPD #define LUA_USE_MODULES_HTTPD
 </​code>​ </​code>​
-  * Compile firmware as was descibed [[:​project:​nodemcu_lbe:​en|here]] +  * Compile firmware as was descibed [[:​project:​nodemcu_lbe:​en|here]] ​or download compiled bootloader ​[[https://​github.com/​lichnak/​nodemcu-labka/​raw/​master/​src/​node_server_20170311/​firmware/​0x00000.bin|here]] and firmware ​[[https://​github.com/​lichnak/​nodemcu-labka/​raw/​master/​src/​node_server_20170311/​firmware/​0x10000.bin|here]]
-  * Upload firmware to ESP8266 as was descibed for Windows 10 [[:project:​nodemcu_windev:​en|here]] and for Ubuntu ​[[:project:​nodemcu_ubudev:​en|here]]+
   * Connect nodeMCU to USB   * Connect nodeMCU to USB
 {{ project:​wiki_nodemcu_lolin.png }} {{ project:​wiki_nodemcu_lolin.png }}
 +  * Upload bootloader //​bin/​0x00000.bin//​ and firmware //​bin/​0x10000.bin//​ to ESP8266 as was descibed for Windows 10 [[:​project:​nodemcu_windev:​en|here]] and for Ubuntu [[:​project:​nodemcu_ubudev:​en|here]]
 +{{ project:​wiki_nodemcu_esp8266flasher_dual.png?​300 }}
   * Open ESPlorer and connect to nodeMCU   * Open ESPlorer and connect to nodeMCU
 <​code>​ <​code>​
Line 32: Line 34:
  
 </​code>​ </​code>​
-  * Upload httpd files to ESP8266+  * Upload httpd files from [[https://​github.com/​lichnak/​nodemcu-labka/​tree/​master/​src/​node_server_20170311|here]] ​to ESP8266 ​
 <​code>​ <​code>​
 > Uploading to ESP file about.tmpl...Success > Uploading to ESP file about.tmpl...Success
Line 64: Line 66:
 > file.close();​ > file.close();​
 </​code>​ </​code>​
-  * Execute on ESP8266 ​Lua script ''​assemble.lua''​+  * On ESP8266 ​execute ​script ''​assemble.lua''​
 <​code>​ <​code>​
 > dofile("​assemble.lua"​) > dofile("​assemble.lua"​)
Line 91: Line 93:
 </​code>​ </​code>​
   * Restart nodeMCU with ''​RST''​ button   * Restart nodeMCU with ''​RST''​ button
-  * Wait for nodeMCU ​starup+  * Wait for nodeMCU ​start up
 <​code>​ <​code>​
 NodeMCU 2.0.0 build unspecified powered by Lua 5.1.4 on SDK 2.0.0(656edbf) NodeMCU 2.0.0 build unspecified powered by Lua 5.1.4 on SDK 2.0.0(656edbf)
  • project/nodemcu_httpd/en.1489328067.txt.gz
  • Last modified: 2017/03/12 15:14
  • by licho