2021-01-04 10:54:04 +08:00
|
|
|
if __name__ == "__main__":
|
2020-09-29 08:52:46 +08:00
|
|
|
|
2021-01-04 10:54:04 +08:00
|
|
|
from pytec.client import Client
|
|
|
|
|
|
|
|
tec = Client() #(host="localhost", port=6667)
|
|
|
|
tec.set_param("s-h", 1, "t0", 20)
|
|
|
|
print(tec.get_pwm())
|
|
|
|
print(tec.get_pid())
|
|
|
|
print(tec.get_pwm())
|
|
|
|
print(tec.get_postfilter())
|
|
|
|
print(tec.get_steinhart_hart())
|
|
|
|
for data in tec.report_mode():
|
|
|
|
print(data)
|