Unverified Commit 38262e99 authored by Marcel Stör's avatar Marcel Stör Committed by GitHub
Browse files

Fix WiFi example

parent ebd147b3
......@@ -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
......
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