import network import ubinascii wlan = network.WLAN(network.STA_IF) wlan.active(True) print(ubinascii.hexlify(wlan.config('mac'), ':').decode())