Browse Source

Disable AP on boot

master
Elis Hirwing 2 years ago
parent
commit
45dc9fbbb9
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 1
      src/boot.py
  2. 3
      src/main.py

1
src/boot.py

@ -12,5 +12,6 @@ gc.collect()
# My additions:
import main
main.disableAP()
main.connect()
main.server()

3
src/main.py

@ -25,6 +25,9 @@ def connect():
print('network config:', sta_if.ifconfig())
def disableAP():
ap_if = network.WLAN(network.AP_IF)
ap_if.active(False)
def server():
addr = socket.getaddrinfo('0.0.0.0', 80)[0][-1]

Loading…
Cancel
Save