catprint/blelist.py
2022-09-10 08:40:26 +02:00

10 lines
169 B
Python

import asyncio
from bleak import BleakScanner
async def main():
devices = await BleakScanner.discover()
for d in devices:
print(d)
asyncio.run(main())