Commit b2ce0e85 authored by Mark Deneen's avatar Mark Deneen Committed by Marcel Stör
Browse files

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

parent 5ece2fda
...@@ -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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment