diff --git a/ble.py b/ble.py index bf4d760..8c8e50d 100644 --- a/ble.py +++ b/ble.py @@ -26,7 +26,7 @@ async def read_data(mac_address): device = next((d for d in devices if d.address.lower() == mac_address.lower()), None) if device: # print(f"BleakScanner device variable loaded - {device.name}") - print(f".. Found device: {device.name} ({device.address})") + print(f".. Found device: {device.name} ({device.address}) - connecting...") fail_count = 0 # else: # print("BleakScanner device not loaded yet") @@ -43,14 +43,14 @@ async def read_data(mac_address): success = False # Check if Mi service is available - print(".. Waiting on client to connect...") + #print(".. Waiting on client to connect...") while not client.is_connected: await asyncio.sleep(0.1) while not success: try: - print(".. Client connected, getting services") + #print(".. Client connected, getting services") services = client.services - print(".. Services acquired, loading uuid matches") + #print(".. Services acquired, loading uuid matches") mi_service = next((s for s in services if s.uuid.lower() == MI_SERVICE_UUID.lower()), None) success = True #print("uuid matches loaded")