Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
da33b31c
Commit
da33b31c
authored
Jul 28, 2015
by
Daniel Campora
Browse files
docs/wipy: Correct nic.ifconfig() quickref example.
parent
9a348fc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/wipy/quickref.rst
View file @
da33b31c
...
...
@@ -188,7 +188,7 @@ See :ref:`network.WLAN <network.WLAN>` and ``pyb.Sleep``. ::
# configure the WLAN subsystem in station mode (the default is AP)
wifi = WLAN(WLAN.STA)
# 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.connect(ssid='mynetwork', security=2, key='mynetworkkey')
while not wifi.isconnected():
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment