summaryrefslogtreecommitdiffstatshomepage
path: root/docs
diff options
context:
space:
mode:
authorDaniel Campora <daniel@wipy.io>2015-08-05 16:12:29 +0200
committerDaniel Campora <daniel@wipy.io>2015-08-09 19:22:16 +0200
commite54a4f1f4856f6c33a2cea720ab2f2e4fe70f586 (patch)
tree91eeb5a5a059952e47620c28d03ca21dde6238a3 /docs
parentd43019163dd1d8c09b6f1d2280d7a5801044b590 (diff)
downloadmicropython-e54a4f1f4856f6c33a2cea720ab2f2e4fe70f586.tar.gz
micropython-e54a4f1f4856f6c33a2cea720ab2f2e4fe70f586.zip
cc3200: Improve support for WEP security.
Key is always entered as a string, but if security is WEP, the key is converted automatically to hex before connecting or configuring the device as an AP.
Diffstat (limited to 'docs')
-rw-r--r--docs/library/network.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/library/network.rst b/docs/library/network.rst
index 8957b263c8..99a300dbec 100644
--- a/docs/library/network.rst
+++ b/docs/library/network.rst
@@ -272,7 +272,8 @@ class WLAN
- ``security`` can be ``WLAN.OPEN``, ``WLAN.WEP``, ``WLAN.WPA`` or ``WLAN.WPA2``.
Only needed when mode is ``WLAN.AP``.
- ``key`` is a string with the network password. Not needed when mode is ``WLAN.STA``
- or security is ``WLAN.OPEN``.
+ or security is ``WLAN.OPEN``. If ``security`` is ``WLAN.WEP`` the key must be a
+ string representing hexadecimal values (e.g. 'ABC1DE45BF').
- ``channel`` a number in the range 1-11. Only needed when mode is ``WLAN.AP``.
- ``antenna`` selects between the internal and the external antenna. Can be either
``WLAN.INTERNAL`` or ``WLAN.EXTERNAL``.
@@ -295,6 +296,8 @@ class WLAN
Connect to a wifi access point using the given SSID, and other security
parameters.
+ - ``key`` is always a string, but if ``security`` is ``WLAN.WEP`` the key must be a string
+ representing hexadecimal values (e.g. 'ABC1DE45BF').
- ``bssid`` is the MAC address of the AP to connect to. Useful when there are several APs
with the same ssid.
- ``timeout`` is the maximum time in milliseconds to wait for the connection to succeed.