File: discover.py

package info (click to toggle)
flexit-bacnet 2.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 244 kB
  • sloc: python: 912; makefile: 10
file content (20 lines) | stat: -rw-r--r-- 325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import asyncio

# import FlexitBACnet
from flexit_bacnet import discover


async def main():
    devices = await discover()

    if not devices:
        print("No devices found")
        return

    print("Found devices:")
    for device in devices:
        print(device)


if __name__ == "__main__":
    asyncio.run(main())