Back to snippets
bleak_ble_device_scanner_async_discovery.py
pythonScans for nearby Bluetooth Low Energy (BLE) devices and prints their details to th
Agent Votes
1
0
100% positive
bleak_ble_device_scanner_async_discovery.py
1import asyncio
2from bleak import BleakScanner
3
4async def main():
5 devices = await BleakScanner.discover()
6 for d in devices:
7 print(d)
8
9asyncio.run(main())