Przeglądaj źródła

getData bigger timeout

marek 1 miesiąc temu
rodzic
commit
dd74c2f9e3
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      apps/getData.py

+ 1 - 1
apps/getData.py

@@ -59,7 +59,7 @@ async def ble_task():
         await asyncio.sleep(2)
 
         try:
-            async with BleakClient(device) as client:
+            async with BleakClient(device, timeout=60.0) as client:
                 outdoorConnected = 1
                 print(f"connected to {outdoorName}")