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
38262e99
Unverified
Commit
38262e99
authored
Mar 09, 2019
by
Marcel Stör
Committed by
GitHub
Mar 09, 2019
Browse files
Fix WiFi example
parent
ebd147b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/index.md
View file @
38262e99
...
...
@@ -21,9 +21,13 @@ srv:listen(80, function(conn)
end
)
```
```
lua
-- connect to WiFi access point
-- connect to WiFi access point
(DO NOT save config to flash)
wifi
.
setmode
(
wifi
.
STATION
)
wifi
.
sta
.
config
(
"SSID"
,
"password"
)
station_cfg
=
{}
station_cfg
.
ssid
=
"SSID"
station_cfg
.
pwd
=
"password"
station_cfg
.
save
=
false
wifi
.
sta
.
config
(
station_cfg
)
```
```
lua
...
...
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