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