From eda8746324406472cbe9b8b0fa3feaad0d5b0780 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 27 Mar 2016 06:57:35 +0300 Subject: [PATCH] docs/esp8266: phy_mode() moved to network module. --- docs/library/esp.rst | 12 ------------ docs/library/network.rst | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/docs/library/esp.rst b/docs/library/esp.rst index 959bba064a..4c2fb91a51 100644 --- a/docs/library/esp.rst +++ b/docs/library/esp.rst @@ -30,18 +30,6 @@ Functions * ``AP_MODE`` -- software access point mode, * ``STA_AP_MODE`` -- mixed station and software access point mode. -.. function:: phy_mode([mode]) - - Get or set the network interface 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. - .. function:: sleep_type([sleep_type]) Get or set the sleep type. 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 ==========