diff options
author | Jason Hildebrand <jason@peaceworks.ca> | 2015-11-11 23:00:31 -0600 |
---|---|---|
committer | danicampora <daniel@wipy.io> | 2015-11-18 19:55:55 +0100 |
commit | 9142179f813fe10bf0f027ff07097da4882f2d10 (patch) | |
tree | bf4e9f609f5ea35d83041ba72851fcad6b434bc6 /docs/wipy/tutorial/wlan.rst | |
parent | 7080e9632c98b06952ee480f4b4d0021e43d63b4 (diff) | |
download | micropython-9142179f813fe10bf0f027ff07097da4882f2d10.tar.gz micropython-9142179f813fe10bf0f027ff07097da4882f2d10.zip |
docs/wipy: Add warning about losing wlan connection when changing mode.
Also provide workarounds, link to other revelant sections,
and fix some typos.
Diffstat (limited to 'docs/wipy/tutorial/wlan.rst')
-rw-r--r-- | docs/wipy/tutorial/wlan.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/wipy/tutorial/wlan.rst b/docs/wipy/tutorial/wlan.rst index 396bbac0f2..434367cd93 100644 --- a/docs/wipy/tutorial/wlan.rst +++ b/docs/wipy/tutorial/wlan.rst @@ -13,6 +13,15 @@ You can check the current mode (which is always ``WLAN.AP`` after power up):: >>> wlan.mode() +.. warning:: + When you change the WLAN mode following the instructions below, your WLAN + connection to the WiPy will be broken. This means you will not be able + to run these commands interactively over the WLAN. + + There are two ways around this:: + 1. put this setup code into your :ref:`boot.py file<wipy_filesystem>` so that it gets executed automatically after reset. + 2. :ref:`duplicate the REPL on UART <wipy_uart>`, so that you can run commands via USB. + Connecting to your home router ------------------------------ @@ -22,6 +31,7 @@ it as a station:: from network import WLAN wlan = WLAN(mode=WLAN.STA) + Now you can proceed to scan for networks:: nets = wlan.scan() |