Fixed description of Connect to your ap.

This commit is contained in:
Vowstar 2015-01-16 21:04:38 +08:00
parent a2d1e5ff2b
commit 35d2b9e665
1 changed files with 5 additions and 3 deletions

View File

@ -155,11 +155,13 @@ baudrate:9600
####Connect to your ap ####Connect to your ap
```lua ```lua
print(wifi.sta.getip()) ip = wifi.sta.getip()
--0.0.0.0 print(ip)
--nil
wifi.setmode(wifi.STATION) wifi.setmode(wifi.STATION)
wifi.sta.config("SSID","password") wifi.sta.config("SSID","password")
print(wifi.sta.getip()) ip = wifi.sta.getip()
print(ip)
--192.168.18.110 --192.168.18.110
``` ```