Skip to content

Commit

Permalink
discovering example
Browse files Browse the repository at this point in the history
  • Loading branch information
dudanov committed Sep 14, 2024
1 parent febc86d commit 821038c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions examples/discovering.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright 2024, Sergey Dudanov
# SPDX-License-Identifier: Apache-2.0

import asyncio

from pyftms import discover_ftms_devices


async def run():
async for dev, machine_type in discover_ftms_devices():
print(f"Found {machine_type.name}: name: {dev.name}, address: {dev.address}")


asyncio.run(run())

0 comments on commit 821038c

Please sign in to comment.