Commit f9875f6e authored by Marcel Stör's avatar Marcel Stör
Browse files

Skip connect() in init.lua

parent 3eccf506
...@@ -61,7 +61,7 @@ end ...@@ -61,7 +61,7 @@ end
print("Connecting to WiFi access point...") print("Connecting to WiFi access point...")
wifi.setmode(wifi.STATION) wifi.setmode(wifi.STATION)
wifi.sta.config(SSID, PASSWORD) 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() tmr.alarm(1, 1000, 1, function()
if wifi.sta.getip() == nil then if wifi.sta.getip() == nil then
print("Waiting for IP address...") print("Waiting for IP address...")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment