Browse Source

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

pull/1945/head
Paul Sokolovsky 9 years ago
parent
commit
87c783b454
  1. 7
      docs/library/esp.rst
  2. 8
      docs/library/network.rst

7
docs/library/esp.rst

@ -10,13 +10,6 @@ The ``esp`` module contains specific functions related to the ESP8266 module.
Functions Functions
--------- ---------
.. function:: mac([address])
Get or set the network interface's MAC address.
If the ``address`` parameter is provided, sets the address to its value. If
the function is called wihout parameters, returns the current address.
.. function:: sleep_type([sleep_type]) .. function:: sleep_type([sleep_type])
Get or set the sleep type. Get or set the sleep type.

8
docs/library/network.rst

@ -283,6 +283,14 @@ For example::
Disconnect from the currently connected wireless network. Disconnect from the currently connected wireless network.
.. method:: wlan.mac([address])
Get or set the network interface MAC address.
If the ``address`` parameter is provided, sets the address to its
value, which should be bytes object of length 6. If the function
is called wihout parameters, returns the current address.
.. method:: wlan.scan(cb) .. method:: wlan.scan(cb)
Initiate scanning for the available wireless networks. Initiate scanning for the available wireless networks.

Loading…
Cancel
Save