marek 1 mēnesi atpakaļ
vecāks
revīzija
f85744a62a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      apps/getData.py

+ 1 - 1
apps/getData.py

@@ -48,7 +48,7 @@ async def ble_task():
 
     while True:
         try:
-            async with BleakClient(outdoorMac) as client:
+            async with BleakClient(outdoorMac, timeout=60.0, address_type="public") as client:
                 outdoorConnected = 1
                 print(f"connected")