init.lua 297 B

123456789101112
  1. -- Compile freshly uploaded nodemcu-httpserver lua files.
  2. if file.exists("httpserver-compile.lc") then
  3. dofile("httpserver-compile.lc")
  4. else
  5. dofile("httpserver-compile.lua")
  6. end
  7. -- Set up NodeMCU's WiFi
  8. dofile("httpserver-wifi.lc")
  9. -- Start nodemcu-httpsertver
  10. dofile("httpserver-init.lc")