瀏覽代碼

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)
         await asyncio.sleep(2)
 
 
         try:
         try:
-            async with BleakClient(device) as client:
+            async with BleakClient(device, timeout=60.0) as client:
                 outdoorConnected = 1
                 outdoorConnected = 1
                 print(f"connected to {outdoorName}")
                 print(f"connected to {outdoorName}")