Fixed description of Connect to your ap.
This commit is contained in:
parent
a2d1e5ff2b
commit
35d2b9e665
|
@ -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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue