Code: Select all
>>> import network
>>> wlan=network.WLAN()
>>> wlan.mac() # get the interface's MAC adddress
Traceback (most recent call last):
File "<stdin">, line 1, in <module>
AttributeError: 'WLAN' object has no attribute 'mac'
>>> dir(wlan)
['active', 'connect', 'disconnect', 'status', 'scan', 'isconnected', 'config', 'ifconfig']
>>>
(Witty Cloud ESP-12, micropython, firmware built with latest commit 65402ab1ec05fd552ceae63e2dcac69095ab1338):