docs/esp8266/quickref: New way to get MAC address

This commit is contained in:
Radomir Dopieralski 2016-05-10 00:31:57 +02:00
parent 6f34e138f1
commit e89413e9b0

View File

@ -43,7 +43,7 @@ The ``network`` module::
wlan.scan() # scan for access points wlan.scan() # scan for access points
wlan.isconnected() # check if the station is connected to an AP wlan.isconnected() # check if the station is connected to an AP
wlan.connect('essid', 'password') # connect to an AP wlan.connect('essid', 'password') # connect to an AP
wlan.mac() # get the interface's MAC adddress wlan.config('mac') # get the interface's MAC adddress
wlan.ifconfig() # get the interface's IP/netmask/gw/DNS addresses wlan.ifconfig() # get the interface's IP/netmask/gw/DNS addresses
ap = network.WLAN(network.AP_IF) # create access-point interface ap = network.WLAN(network.AP_IF) # create access-point interface