From 679fe0abae92c6dc503b9ebc4a3b594a8b1f6aeb Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 27 Mar 2016 06:58:49 +0300 Subject: [PATCH] docs/esp8266: esp.wifi_mode() replaced with network.WLAN.active(). --- docs/library/esp.rst | 13 ------------- docs/library/network.rst | 6 ++++++ 2 files changed, 6 insertions(+), 13 deletions(-) diff --git a/docs/library/esp.rst b/docs/library/esp.rst index 4c2fb91a51..0e7c65f5d2 100644 --- a/docs/library/esp.rst +++ b/docs/library/esp.rst @@ -17,19 +17,6 @@ Functions If the ``address`` parameter is provided, sets the address to its value. If the function is called wihout parameters, returns the current address. -.. function:: wifi_mode([mode]) - - Get or set the wireless network operating 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: - - * ``STA_MODE`` -- station mode, - * ``AP_MODE`` -- software access point mode, - * ``STA_AP_MODE`` -- mixed station and software access point mode. - .. function:: sleep_type([sleep_type]) Get or set the sleep type. diff --git a/docs/library/network.rst b/docs/library/network.rst index f0c0b3fc23..9a37caf1a8 100644 --- a/docs/library/network.rst +++ b/docs/library/network.rst @@ -269,6 +269,12 @@ For example:: Methods ------- + .. method:: wlan.active([is_active]) + + Activate ("up") or deactivate ("down") network interface, if boolean + argument is passed. Otherwise, query current state if no argument is + provided. Most other methods require active interface. + .. method:: wlan.connect(ssid, password) Connect to the specified wireless network, using the specified password.