marek 1 kuukausi sitten
vanhempi
sitoutus
e5a37bfd59
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      apps/getData.py

+ 2 - 0
apps/getData.py

@@ -66,6 +66,8 @@ async def ble_task():
                 await client.start_notify(PRESSURE_UUID, notification_handler)
                 await client.start_notify(HUMIDITY_UUID, notification_handler)
                 await client.start_notify(ALTITUDE_UUID, notification_handler)
+
+                await asyncio.sleep(1)
         except Exception:
             outdoorConnected = 0
             print("exception while connecting or getting data")