Commit Diff


commit - 4a4410927296c7f5cbcc93c3ca9db07c7b52e191
commit + b8973609b789fde40f78000c942f47c6334e77d3
blob - 27edab4823db3a3d4f60cdb9bf4552fabe8bdf4a
blob + 257e8801fc06933994a7ee6949882f8912044e76
--- src/main.py
+++ src/main.py
@@ -1,3 +1,5 @@
+import sys
+
 from machine import RTC
 
 import time
@@ -52,12 +54,13 @@ def main():
         if not nic.isconnected():
             nic.active(True)
             nic.connect(ssid, password)
-            tries = 10
+            tries = 100
             while not nic.isconnected():
-                print(tries)
+                sys.stdout.write(".")
                 tries = tries - 1
                 if tries <= 0:
                     raise OSError
+                time.sleep(0.2)
                 pass
             print("NIC: connection established")
         else: