Archived
1
0

Added sleep during WiFi connection failures to avoid unnecessary reconnection attempts.

This commit is contained in:
Shaun Setlock
2022-11-26 14:12:34 -05:00
parent 17caf17463
commit e14a2d0a9e

View File

@@ -139,7 +139,8 @@ def main():
if DEBUG:
print("Trouble to connecting WiFi: {}".format(e))
led_error_code(led, 3)
continue
time.sleep(10)
continue
else:
if DEBUG:
print("Connected to WiFi: {}".format(ifconfig))