catprint/blelist.py

10 lines
169 B
Python
Raw Normal View History

2022-09-10 06:40:26 +00:00
import asyncio
from bleak import BleakScanner
async def main():
devices = await BleakScanner.discover()
for d in devices:
print(d)
asyncio.run(main())