Files
RACE/test_scan.py
2026-07-06 06:10:43 +00:00

12 lines
278 B
Python

import asyncio
from bleak import BleakScanner
async def test():
print("[*] Scanning for 5 seconds...")
devices = await BleakScanner.discover(timeout=5)
for d in devices:
print(f" {d.address} - {d.name}")
print("[+] Scan complete")
asyncio.run(test())