You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Disable wifi if connection unsuccessful to conserve power
This commit is contained in:
@@ -73,3 +73,4 @@ if auto_connect():
|
||||
print("WiFi auto-connect managed to connect.")
|
||||
else:
|
||||
print("WiFi auto connect did not manage to connect.")
|
||||
wlan.active(False) # disable to conserve power
|
||||
|
||||
Reference in New Issue
Block a user