summaryrefslogtreecommitdiffstatshomepage
path: root/docs
diff options
context:
space:
mode:
authorChris Liechti <cliechti@gmx.net>2015-11-10 01:10:50 +0100
committerdanicampora <daniel@wipy.io>2015-11-18 20:02:07 +0100
commit426f326d3594c567102237620e8a5fe8c709eee5 (patch)
tree45f954a31dc45318b4bc30fb2a0c6697e9cf6fc8 /docs
parent9142179f813fe10bf0f027ff07097da4882f2d10 (diff)
downloadmicropython-426f326d3594c567102237620e8a5fe8c709eee5.tar.gz
micropython-426f326d3594c567102237620e8a5fe8c709eee5.zip
docs/wipy: Make wifi/wlan naming consistent with tutorial.rst.
Diffstat (limited to 'docs')
-rw-r--r--docs/wipy/quickref.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/wipy/quickref.rst b/docs/wipy/quickref.rst
index 8c62486cde..a30eec2aae 100644
--- a/docs/wipy/quickref.rst
+++ b/docs/wipy/quickref.rst
@@ -184,16 +184,16 @@ See :ref:`network.WLAN <network.WLAN>` and :mod:`machine`. ::
from network import WLAN
# configure the WLAN subsystem in station mode (the default is AP)
- wifi = WLAN(mode=WLAN.STA)
+ wlan = WLAN(mode=WLAN.STA)
# go for fixed IP settings
- wifi.ifconfig(config=('192.168.0.107', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
- wifi.scan() # scan for available networks
- wifi.connect(ssid='mynetwork', auth=(WLAN.WPA2, 'mynetworkkey'))
- while not wifi.isconnected():
+ wlan.ifconfig(config=('192.168.0.107', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
+ wlan.scan() # scan for available networks
+ wlan.connect(ssid='mynetwork', auth=(WLAN.WPA2, 'mynetworkkey'))
+ while not wlan.isconnected():
pass
- print(wifi.ifconfig())
+ print(wlan.ifconfig())
# enable wake on WLAN
- wifi.irq(trigger=WLAN.ANY_EVENT, wake=machine.SLEEP)
+ wlan.irq(trigger=WLAN.ANY_EVENT, wake=machine.SLEEP)
# go to sleep
machine.sleep()
# now, connect to the FTP or the Telnet server and the WiPy will wake-up