Commit 260b8394 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

esp8266/scripts/inisetup.py: Set WPA/WPA2 AP mode with a predefined password.

parent 40f5ecd3
......@@ -5,7 +5,8 @@ from flashbdev import bdev
def wifi():
import ubinascii
ap_if = network.WLAN(network.AP_IF)
ap_if.config(essid=b"MicroPython %s" % ubinascii.hexlify(ap_if.mac()[-3:]))
essid = b"MicroPython %s" % ubinascii.hexlify(ap_if.mac()[-3:])
ap_if.config(essid=essid, authmode=network.AUTH_WPA_WPA2_PSK, password=b"micropythoN")
def check_bootsec():
buf = bytearray(bdev.SEC_SIZE)
......
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