docs/esp8266: esp.wifi_mode() replaced with network.WLAN.active().

This commit is contained in:
Paul Sokolovsky 2016-03-27 06:58:49 +03:00
parent eda8746324
commit 679fe0abae
2 changed files with 6 additions and 13 deletions

View File

@ -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.

View File

@ -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.