Skip to content

Commit 679fe0a

Browse files
committed
docs/esp8266: esp.wifi_mode() replaced with network.WLAN.active().
1 parent eda8746 commit 679fe0a

2 files changed

Lines changed: 6 additions & 13 deletions

File tree

docs/library/esp.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,6 @@ Functions
1717
If the ``address`` parameter is provided, sets the address to its value. If
1818
the function is called wihout parameters, returns the current address.
1919

20-
.. function:: wifi_mode([mode])
21-
22-
Get or set the wireless network operating mode.
23-
24-
If the ``mode`` parameter is provided, sets the mode to its value. If
25-
the function is called wihout parameters, returns the current mode.
26-
27-
The possible modes are defined as constants:
28-
29-
* ``STA_MODE`` -- station mode,
30-
* ``AP_MODE`` -- software access point mode,
31-
* ``STA_AP_MODE`` -- mixed station and software access point mode.
32-
3320
.. function:: sleep_type([sleep_type])
3421

3522
Get or set the sleep type.

docs/library/network.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,12 @@ For example::
269269
Methods
270270
-------
271271

272+
.. method:: wlan.active([is_active])
273+
274+
Activate ("up") or deactivate ("down") network interface, if boolean
275+
argument is passed. Otherwise, query current state if no argument is
276+
provided. Most other methods require active interface.
277+
272278
.. method:: wlan.connect(ssid, password)
273279

274280
Connect to the specified wireless network, using the specified password.

0 commit comments

Comments
 (0)