mirror of
https://github.com/meshtastic/python.git
synced 2025-12-30 19:37:52 -05:00
13 lines
218 B
Python
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())
|