소스 검색

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")