Skip to content

Commit 87c783b

Browse files
committed
docs/esp8266: esp.mac() replaced with network.WLAN.mac().
1 parent 679fe0a commit 87c783b

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

docs/library/esp.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,6 @@ The ``esp`` module contains specific functions related to the ESP8266 module.
1010
Functions
1111
---------
1212

13-
.. function:: mac([address])
14-
15-
Get or set the network interface's MAC address.
16-
17-
If the ``address`` parameter is provided, sets the address to its value. If
18-
the function is called wihout parameters, returns the current address.
19-
2013
.. function:: sleep_type([sleep_type])
2114

2215
Get or set the sleep type.

docs/library/network.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,14 @@ For example::
283283

284284
Disconnect from the currently connected wireless network.
285285

286+
.. method:: wlan.mac([address])
287+
288+
Get or set the network interface MAC address.
289+
290+
If the ``address`` parameter is provided, sets the address to its
291+
value, which should be bytes object of length 6. If the function
292+
is called wihout parameters, returns the current address.
293+
286294
.. method:: wlan.scan(cb)
287295

288296
Initiate scanning for the available wireless networks.

0 commit comments

Comments
 (0)