Untitled

mail@pastecode.io avatar
unknown
python
9 days ago
286 B
2
Indexable
Never
import asyncio
from bleak import BleakScanner, BleakClient

# Scan for nearby Bluetooth devices and print them on the screen
async def scan_devices():
    devices = await BleakScanner.discover()
    for device in devices:
        print(f"Found device: {device.name} - {device.address}")
Leave a Comment