浏览代码

getData fix

marek 1 月之前
父节点
当前提交
f85744a62a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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")