Commit 3a6d0625 authored by Florian Klien's avatar Florian Klien

working copy of MQTT DHT22 without AP spam

parent c1eaa7d0
# This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
import gc
#import webrepl
#webrepl.start()
gc.collect()
# This file is executed on every boot (including wake-boot from deepsleep)
#import esp
#esp.osdebug(None)
import gc
#import webrepl
#webrepl.start()
gc.collect()
......@@ -57,6 +57,10 @@ def do_connect():
network_connect_start_time = time.ticks_ms()
import network
# disable AP wifi
ap = network.WLAN(network.AP_IF)
ap.active(False)
if not wlan.active():
wlan.active(True)
nets = wlan.scan()
......@@ -144,6 +148,3 @@ while True:
machine.deepsleep()
else:
time.sleep(INTERVAL)
ap.active(False)
Markdown is supported
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