Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
f9875f6e
Commit
f9875f6e
authored
Jul 28, 2016
by
Marcel Stör
Browse files
Skip connect() in init.lua
parent
3eccf506
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/en/upload.md
View file @
f9875f6e
...
...
@@ -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..."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment