docs/wipy: Correct nic.ifconfig() quickref example.

This commit is contained in:
Daniel Campora 2015-07-28 23:08:15 +02:00
parent 9a348fc840
commit da33b31c7d
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ See :ref:`network.WLAN <network.WLAN>` and ``pyb.Sleep``. ::
# configure the WLAN subsystem in station mode (the default is AP) # configure the WLAN subsystem in station mode (the default is AP)
wifi = WLAN(WLAN.STA) wifi = WLAN(WLAN.STA)
# go for fixed IP settings # go for fixed IP settings
wifi.ifconfig('192.168.0.107', '255.255.255.0', '192.168.0.1', '8.8.8.8') wifi.ifconfig(('192.168.0.107', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
wifi.scan() # scan for available netrworks wifi.scan() # scan for available netrworks
wifi.connect(ssid='mynetwork', security=2, key='mynetworkkey') wifi.connect(ssid='mynetwork', security=2, key='mynetworkkey')
while not wifi.isconnected(): while not wifi.isconnected():