Skip connect() in init.lua

This commit is contained in:
Marcel Stör 2016-07-28 07:07:39 +02:00
parent 3eccf506d1
commit f9875f6e38
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ end
print("Connecting to WiFi access point...")
wifi.setmode(wifi.STATION)
wifi.sta.config(SSID, PASSWORD)
wifi.sta.connect()
-- wifi.sta.connect() not necessary because config() uses auto-connect=true by default
tmr.alarm(1, 1000, 1, function()
if wifi.sta.getip() == nil then
print("Waiting for IP address...")