fix example which is not intended to write to flash, but actually was (#2174)

This commit is contained in:
Mark Deneen 2017-11-18 16:40:36 -05:00 committed by Marcel Stör
parent 5ece2fda20
commit b2ce0e8581
1 changed files with 3 additions and 2 deletions

View File

@ -453,6 +453,7 @@ Sets the WiFi station configuration.
station_cfg={}
station_cfg.ssid="NODE-AABBCC"
station_cfg.pwd="password"
station_cfg.save=false
wifi.sta.config(station_cfg)
--connect to Access Point (DO save config to flash)
@ -462,14 +463,14 @@ station_cfg.pwd="password"
station_cfg.save=true
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.ssid="NODE-AABBCC"
station_cfg.pwd="password"
station_cfg.bssid="AA:BB:CC:DD:EE:FF"
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.ssid="NODE-AABBCC"
station_cfg.pwd="password"