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.