소스 검색

getData bigger timeout

marek 1 개월 전
부모
커밋
dd74c2f9e3
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}")