mirror of
https://github.com/meshtastic/python.git
synced 2026-04-24 00:38:29 -04:00
begin BLE support
This commit is contained in:
12
meshtastic/ble.py
Normal file
12
meshtastic/ble.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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())
|
||||
Reference in New Issue
Block a user