Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 687 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 687 Bytes

pyitachip2sl

Python3 interface for sending serial commands via GlobalCache iTach IP to Serial device

Notes

This was developed for use with Home-Assistant but is usable by any python application.

Usage

from pyitachip2sl import ITachIP2SLSocketClient

hostname = '10.0.0.50'
port = 4999 # Optional parameter, defaults to 4999
timeout = 1 # Optional parameter, defaults to 1

itach = ITachIP2SLSocketClient(hostname, port, timeout)

# Send ASCII command
itach.send_data("Status1.")

# Send ASCII command and retrieve response
response = itach.send_data("Status1.")
print(response)

# Send raw data
itach.send_data("082200000002D4", True)