Cleaned up
This commit is contained in:
parent
4dffc7009d
commit
a86b6711bb
9
init.lua
9
init.lua
@ -8,16 +8,19 @@ print('chip: ',node.chipid())
|
|||||||
print('heap: ',node.heap())
|
print('heap: ',node.heap())
|
||||||
wifi.sta.config("Internet","")
|
wifi.sta.config("Internet","")
|
||||||
|
|
||||||
|
--require("httpserver")
|
||||||
|
|
||||||
-- Wait until WiFi connection is established
|
-- Wait until WiFi connection is established
|
||||||
|
|
||||||
tmr.alarm(0, 2000, 1, function()
|
tmr.alarm(0, 2000, 1, function()
|
||||||
if wifi.sta.getip() == nil then
|
if wifi.sta.getip() == nil then
|
||||||
print("Connecting to AP...")
|
print("Connecting to AP...")
|
||||||
else
|
else
|
||||||
print('IP: ',wifi.sta.getip())
|
|
||||||
tmr.stop(0)
|
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
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
||||||
--dofile("garage.lua")
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user