Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
260b8394
Commit
260b8394
authored
Apr 12, 2016
by
Paul Sokolovsky
Browse files
esp8266/scripts/inisetup.py: Set WPA/WPA2 AP mode with a predefined password.
parent
40f5ecd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
esp8266/scripts/inisetup.py
View file @
260b8394
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment