diff --git a/net_alerter/ble_alerter.py b/net_alerter/ble_alerter.py index 52442f7..9e0612c 100755 --- a/net_alerter/ble_alerter.py +++ b/net_alerter/ble_alerter.py @@ -256,8 +256,8 @@ async def scan_loop(): await on_arrival(name, mac, rssi) - # Passive scanner — no SCAN_REQ packets sent - async with BleakScanner(detection_callback=detection_callback, scanning_mode="passive") as scanner: + # Active scanner — sends SCAN_REQ to get full advertisement data including device names + async with BleakScanner(detection_callback=detection_callback) as scanner: try: while not shutdown_event.is_set(): await asyncio.sleep(1)