Skip to content
Snippets Groups Projects
Commit e89413e9 authored by Radomir Dopieralski's avatar Radomir Dopieralski
Browse files

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

parent 6f34e138
Branches
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ The ``network`` module:: ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment