Better not to start server automatically
This commit is contained in:
parent
820437a98a
commit
69c7f385b8
4
init.lua
4
init.lua
@ -62,11 +62,11 @@ tmr.alarm(0, 3000, 1, function()
|
|||||||
joinCounter = joinCounter +1
|
joinCounter = joinCounter +1
|
||||||
else
|
else
|
||||||
if joinCounter == joinMaxAttempts then
|
if joinCounter == joinMaxAttempts then
|
||||||
print('Faild to connect to WiFi Access Point.')
|
print('Failed to connect to WiFi Access Point.')
|
||||||
else
|
else
|
||||||
print('IP: ',ip)
|
print('IP: ',ip)
|
||||||
-- Uncomment to automatically start the server in port 80
|
-- Uncomment to automatically start the server in port 80
|
||||||
dofile("httpserver.lc")(80)
|
--dofile("httpserver.lc")(80)
|
||||||
end
|
end
|
||||||
tmr.stop(0)
|
tmr.stop(0)
|
||||||
joinCounter = nil
|
joinCounter = nil
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user