From 87c783b45487fba24615838ad297bf755cb344d3 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 27 Mar 2016 06:59:29 +0300 Subject: [PATCH] docs/esp8266: esp.mac() replaced with network.WLAN.mac(). --- docs/library/esp.rst | 7 ------- docs/library/network.rst | 8 ++++++++ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/library/esp.rst b/docs/library/esp.rst index 0e7c65f5d2..d1fbe9f259 100644 --- a/docs/library/esp.rst +++ b/docs/library/esp.rst @@ -10,13 +10,6 @@ The ``esp`` module contains specific functions related to the ESP8266 module. 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]) Get or set the sleep type. diff --git a/docs/library/network.rst b/docs/library/network.rst index 9a37caf1a8..98b5b307ee 100644 --- a/docs/library/network.rst +++ b/docs/library/network.rst @@ -283,6 +283,14 @@ For example:: 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) Initiate scanning for the available wireless networks.