begin BLE support

This commit is contained in:
geeksville
2020-05-12 13:54:11 -07:00
parent bfa2d97e43
commit 8af99477bb
8 changed files with 102 additions and 18 deletions

12
meshtastic/ble.py Normal file
View 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())