summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/network.rst
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-27 06:57:35 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-27 06:58:06 +0300
commiteda8746324406472cbe9b8b0fa3feaad0d5b0780 (patch)
treed74507d3f7e2dc4d1f3acc4175708544038829e1 /docs/library/network.rst
parent935e021250bb4de67d973f229dff27c55c7874f1 (diff)
downloadmicropython-eda8746324406472cbe9b8b0fa3feaad0d5b0780.tar.gz
micropython-eda8746324406472cbe9b8b0fa3feaad0d5b0780.zip
docs/esp8266: phy_mode() moved to network module.
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 efca166fb7..f0c0b3fc23 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
==========