You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/modules/wifi.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -410,8 +410,8 @@ Sets the WiFi station configuration.
410
410
- "AC-1D-1C-B1-0B-22"
411
411
- "DE AD BE EF 7A C0"
412
412
- `save` Save station configuration to flash.
413
-
- `true` configuration **will** be retained through power cycle.
414
-
- `false` configuration **will not** be retained through power cycle. (Default).
413
+
- `true` configuration **will** be retained through power cycle. (Default).
414
+
- `false` configuration **will not** be retained through power cycle.
415
415
- Event callbacks will only be available if `WIFI_SDK_EVENT_MONITOR_ENABLE` is uncommented in `user_config.h`
416
416
- Please note: To ensure all station events are handled at boot time, all relevant callbacks must be registered as early as possible in `init.lua` with either `wifi.sta.config()` or `wifi.eventmon.register()`.
417
417
- `connected_cb`: Callback to execute when station is connected to an access point. (Optional)
@@ -447,13 +447,13 @@ Sets the WiFi station configuration.
447
447
station_cfg={}
448
448
station_cfg.ssid="NODE-AABBCC"
449
449
station_cfg.pwd="password"
450
+
station_cfg.save=false
450
451
wifi.sta.config(station_cfg)
451
452
452
453
--connect to Access Point (DO save config to flash)
453
454
station_cfg={}
454
455
station_cfg.ssid="NODE-AABBCC"
455
456
station_cfg.pwd="password"
456
-
station_cfg.save=true
457
457
wifi.sta.config(station_cfg)
458
458
459
459
--connect to Access Point with specific MAC address
0 commit comments