Skip to main content

TTM214 device control library

Project description

TTM214 Async

An asynchronous library for controlling TTM214 devices.
Communication uses the TOHO protocol

Example

import asyncio

from ttm214_async import TTM214, ReadRequest, WriteRequest


async def main() -> None:
    comport = "COM3"
    address = 1

    # Initialize client
    client = TTM214(address, use_bcc=True)
    await client.open_port(comport)

    # Write request
    print(await client.query(WriteRequest("SV1", 100)))

    # Read request
    print(await client.query(ReadRequest("PV1")))
    print(await client.query(ReadRequest("SV1")))


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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ttm214_async-0.1.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ttm214_async-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file ttm214_async-0.1.0.tar.gz.

File metadata

  • Download URL: ttm214_async-0.1.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for ttm214_async-0.1.0.tar.gz
Algorithm Hash digest
SHA256 53f9f0ab2cb0f15a53a00d97ed7d282fc9c502f6a53e11061bcdd65a153317f9
MD5 a261c73df7abfa4bc059b565af7bd0eb
BLAKE2b-256 5fea8aab42bbc9c492cf1abf207c19c646782d3f52155ddbec298f0821dbcc36

See more details on using hashes here.

File details

Details for the file ttm214_async-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ttm214_async-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for ttm214_async-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9c762df71c133ed92eb621b53657f8f94e384f9366e45260bda98ca94bf2f7d
MD5 b2398871d0ec319c2ed0acf2602b37c2
BLAKE2b-256 737d66d688fc5451dc409fbc30d2e185c6bfaebcd77d52f959087f4bce30de98

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page