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
Release history Release notifications | RSS feed
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.2.0.tar.gz
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ttm214_async-0.2.0.tar.gz.
File metadata
- Download URL: ttm214_async-0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16d794c6eeb49ae8417fb3ed6cf242db5521c17870945e566c8afd3c3ea0f70b
|
|
| MD5 |
8289bb47143c1d235e05ca311dd5a581
|
|
| BLAKE2b-256 |
ea9bbdee2cdeb908a9b695df666e48dacf608d4702f65b5b1c1603b541bdcea9
|
File details
Details for the file ttm214_async-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ttm214_async-0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd5d80c2a511a9b5ea9ee2a29c55ea5d94249bbf8e418da9399a55e7bc63ba9c
|
|
| MD5 |
cd347a70fa464074351b882e8352d2aa
|
|
| BLAKE2b-256 |
59e01d55c07dde48ff495b80025ed8e8abc70ad47ddedeae10e2ae38a57ba1f0
|