Skip to content

Commit

Permalink
Skip connect() in init.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelstoer committed Jul 28, 2016
1 parent 3eccf50 commit f9875f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/en/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down

0 comments on commit f9875f6

Please sign in to comment.