Clean up
This commit is contained in:
parent
685102f478
commit
3f5caa7afb
7
init.lua
7
init.lua
@ -8,19 +8,12 @@ print('chip: ',node.chipid())
|
||||
print('heap: ',node.heap())
|
||||
wifi.sta.config("Internet","")
|
||||
|
||||
--require("httpserver")
|
||||
|
||||
-- Wait until WiFi connection is established
|
||||
|
||||
tmr.alarm(0, 3000, 1, function()
|
||||
if wifi.sta.getip() == nil then
|
||||
print("Connecting to AP...")
|
||||
else
|
||||
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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user