diff --git a/ble.py b/ble.py index 55de2da..969d2ed 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})") fail_count = 0 # else: # print("BleakScanner device not loaded yet") @@ -43,7 +43,7 @@ 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: diff --git a/scanner.py b/scanner.py index 5576216..258c306 100644 --- a/scanner.py +++ b/scanner.py @@ -96,6 +96,7 @@ def update_cache() -> None: """ # Run the async scan in a fresh loop; Bleak requires this. # Gets the MACs + print("") print("--- Starting update_cache loop ---") new_macs = scan_macs() # now that we have MACs, let's get sensor data