diff --git a/api/ble.py b/api/ble.py index 0b6eac1..af6c771 100644 --- a/api/ble.py +++ b/api/ble.py @@ -193,7 +193,7 @@ async def read_data(mac: str) -> Optional[SensorReading]: # # if not address: # return None - + address = mac try: async with BleakClient(address, timeout=CONNECT_TIMEOUT) as client: # NEW BLOCK ----------------------------------------------