Commit 5e94f0b4 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/scripts/inisetup: Update for nic.mac() method being gone.

parent a6cf4586
......@@ -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():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment