From a86b6711bbad60d18a243071ca1018767872643e Mon Sep 17 00:00:00 2001 From: Marcos Kirsch Date: Sun, 8 Feb 2015 22:03:44 -0600 Subject: [PATCH] Cleaned up --- init.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index e758ccc..d41a4f2 100644 --- a/init.lua +++ b/init.lua @@ -8,16 +8,19 @@ print('chip: ',node.chipid()) print('heap: ',node.heap()) wifi.sta.config("Internet","") +--require("httpserver") + -- Wait until WiFi connection is established tmr.alarm(0, 2000, 1, function() if wifi.sta.getip() == nil then print("Connecting to AP...") else - print('IP: ',wifi.sta.getip()) tmr.stop(0) + print('IP: ',wifi.sta.getip()) + local port = 80 + --server = httpserver.start(port, 10) + --print("nodemcu-httpserver started on port " .. port) end end) - ---dofile("garage.lua")