File: example.py

package info (click to toggle)
python-bluetooth-adapters 2.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 540 kB
  • sloc: python: 2,634; makefile: 12
file content (12 lines) | stat: -rw-r--r-- 224 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
import asyncio

from bluetooth_adapters import get_adapters


async def go() -> None:
    bluetooth_adapters = get_adapters()
    await bluetooth_adapters.refresh()
    print(bluetooth_adapters.adapters)


asyncio.run(go())