소스 검색

init shows new way of starting server

Marcos Kirsch 9 년 전
부모
커밋
f43025f237
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      init.lua

+ 2 - 3
init.lua

@@ -12,9 +12,8 @@ tmr.alarm(0, 3000, 1, function()
    else
    else
       tmr.stop(0)
       tmr.stop(0)
       print('IP: ',wifi.sta.getip())
       print('IP: ',wifi.sta.getip())
-      -- Uncomment to automatically start the server.
-      -- require("httpserver")
-      -- server = httpserver.start(80, 10)
+      -- Uncomment to automatically start the server in port 80
+      -- dofile("httpserver.lc")(80, 10)
    end
    end
 end)
 end)