summaryrefslogtreecommitdiff
path: root/docs/library/network.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/library/network.rst')
-rw-r--r--docs/library/network.rst15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/library/network.rst b/docs/library/network.rst
index efca166fb..f0c0b3fc2 100644
--- a/docs/library/network.rst
+++ b/docs/library/network.rst
@@ -229,6 +229,21 @@ For example::
.. only:: port_esp8266
+ Functions
+ =========
+
+ .. function:: phy_mode([mode])
+
+ Get or set the PHY mode.
+
+ If the ``mode`` parameter is provided, sets the mode to its value. If
+ the function is called wihout parameters, returns the current mode.
+
+ The possible modes are defined as constants:
+ * ``MODE_11B`` -- IEEE 802.11b,
+ * ``MODE_11G`` -- IEEE 802.11g,
+ * ``MODE_11N`` -- IEEE 802.11n.
+
class WLAN
==========