Skip to content

Commit eda8746

Browse files
committed
docs/esp8266: phy_mode() moved to network module.
1 parent 935e021 commit eda8746

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

docs/library/esp.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,6 @@ Functions
3030
* ``AP_MODE`` -- software access point mode,
3131
* ``STA_AP_MODE`` -- mixed station and software access point mode.
3232

33-
.. function:: phy_mode([mode])
34-
35-
Get or set the network interface mode.
36-
37-
If the ``mode`` parameter is provided, sets the mode to its value. If
38-
the function is called wihout parameters, returns the current mode.
39-
40-
The possible modes are defined as constants:
41-
* ``MODE_11B`` -- IEEE 802.11b,
42-
* ``MODE_11G`` -- IEEE 802.11g,
43-
* ``MODE_11N`` -- IEEE 802.11n.
44-
4533
.. function:: sleep_type([sleep_type])
4634

4735
Get or set the sleep type.

docs/library/network.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,21 @@ For example::
229229

230230
.. only:: port_esp8266
231231

232+
Functions
233+
=========
234+
235+
.. function:: phy_mode([mode])
236+
237+
Get or set the PHY mode.
238+
239+
If the ``mode`` parameter is provided, sets the mode to its value. If
240+
the function is called wihout parameters, returns the current mode.
241+
242+
The possible modes are defined as constants:
243+
* ``MODE_11B`` -- IEEE 802.11b,
244+
* ``MODE_11G`` -- IEEE 802.11g,
245+
* ``MODE_11N`` -- IEEE 802.11n.
246+
232247
class WLAN
233248
==========
234249

0 commit comments

Comments
 (0)