Fix main.py

This commit is contained in:
Lauri Võsandi 2018-12-23 23:27:20 +02:00
parent a6d09a60cc
commit c2439c9540

View File

@ -8,8 +8,8 @@ from timezone import TIMEZONES
app = picoweb.WebApp(__name__) app = picoweb.WebApp(__name__)
ap_if = network.WLAN(network.AP_IF) ap_if = network.WLAN(network.AP_IF)
sta_if = network.WLAN(network.STA_IF) sta_if = network.WLAN(network.STA_IF)
nets = sta_if.scan()
sta_if.active(True) sta_if.active(True)
nets = sta_if.scan()
config = dict() config = dict()
try: try:
with open("config.json") as fh: with open("config.json") as fh: