Files
python/meshtastic/ble.py
2020-05-12 13:54:11 -07:00

13 lines
218 B
Python

import asyncio
from bleak import discover
async def run():
devices = await discover()
for d in devices:
print(d)
def bleScan():
loop = asyncio.get_event_loop()
loop.run_until_complete(run())