You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

9 lines
269 B

import asyncio
from bleak import BleakScanner
async def discover_devices():
devices = await BleakScanner.discover()
for device in devices:
print(f"Device: {device.name}, Address: {device.address}, rssi: {device._rssi}")
asyncio.run(discover_devices())