From 5e94f0b43a28d919f568a786fe019cbfbdfa04a6 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 3 May 2016 02:16:42 +0300 Subject: [PATCH] esp8266/scripts/inisetup: Update for nic.mac() method being gone. --- esp8266/scripts/inisetup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esp8266/scripts/inisetup.py b/esp8266/scripts/inisetup.py index b7c81d5387..93a05bd8a7 100644 --- a/esp8266/scripts/inisetup.py +++ b/esp8266/scripts/inisetup.py @@ -5,7 +5,7 @@ from flashbdev import bdev def wifi(): import ubinascii ap_if = network.WLAN(network.AP_IF) - essid = b"MicroPython-%s" % ubinascii.hexlify(ap_if.mac()[-3:]) + essid = b"MicroPython-%s" % ubinascii.hexlify(ap_if.config("mac")[-3:]) ap_if.config(essid=essid, authmode=network.AUTH_WPA_WPA2_PSK, password=b"micropythoN") def check_bootsec():