Skip to content

Commit da33b31

Browse files
author
Daniel Campora
committed
docs/wipy: Correct nic.ifconfig() quickref example.
1 parent 9a348fc commit da33b31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/wipy/quickref.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ See :ref:`network.WLAN <network.WLAN>` and ``pyb.Sleep``. ::
188188
# configure the WLAN subsystem in station mode (the default is AP)
189189
wifi = WLAN(WLAN.STA)
190190
# go for fixed IP settings
191-
wifi.ifconfig('192.168.0.107', '255.255.255.0', '192.168.0.1', '8.8.8.8')
191+
wifi.ifconfig(('192.168.0.107', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
192192
wifi.scan() # scan for available netrworks
193193
wifi.connect(ssid='mynetwork', security=2, key='mynetworkkey')
194194
while not wifi.isconnected():

0 commit comments

Comments
 (0)