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
b2ce0e85
Commit
b2ce0e85
authored
Nov 18, 2017
by
Mark Deneen
Committed by
Marcel Stör
Nov 18, 2017
Browse files
fix example which is not intended to write to flash, but actually was (#2174)
parent
5ece2fda
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/en/modules/wifi.md
View file @
b2ce0e85
...
@@ -453,6 +453,7 @@ Sets the WiFi station configuration.
...
@@ -453,6 +453,7 @@ Sets the WiFi station configuration.
station_cfg
=
{}
station_cfg
=
{}
station_cfg
.
ssid
=
"NODE-AABBCC"
station_cfg
.
ssid
=
"NODE-AABBCC"
station_cfg
.
pwd
=
"password"
station_cfg
.
pwd
=
"password"
station_cfg
.
save
=
false
wifi
.
sta
.
config
(
station_cfg
)
wifi
.
sta
.
config
(
station_cfg
)
--connect to Access Point (DO save config to flash)
--connect to Access Point (DO save config to flash)
...
@@ -462,14 +463,14 @@ station_cfg.pwd="password"
...
@@ -462,14 +463,14 @@ station_cfg.pwd="password"
station_cfg
.
save
=
true
station_cfg
.
save
=
true
wifi
.
sta
.
config
(
station_cfg
)
wifi
.
sta
.
config
(
station_cfg
)
--connect to Access Point with specific MAC address
--connect to Access Point with specific MAC address
(DO save config to flash)
station_cfg
=
{}
station_cfg
=
{}
station_cfg
.
ssid
=
"NODE-AABBCC"
station_cfg
.
ssid
=
"NODE-AABBCC"
station_cfg
.
pwd
=
"password"
station_cfg
.
pwd
=
"password"
station_cfg
.
bssid
=
"AA:BB:CC:DD:EE:FF"
station_cfg
.
bssid
=
"AA:BB:CC:DD:EE:FF"
wifi
.
sta
.
config
(
station_cfg
)
wifi
.
sta
.
config
(
station_cfg
)
--configure station but don't connect to Access point
--configure station but don't connect to Access point
(DO save config to flash)
station_cfg
=
{}
station_cfg
=
{}
station_cfg
.
ssid
=
"NODE-AABBCC"
station_cfg
.
ssid
=
"NODE-AABBCC"
station_cfg
.
pwd
=
"password"
station_cfg
.
pwd
=
"password"
...
...
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