2020-09-29 08:52:46 +08:00
|
|
|
from pytec.client import Client
|
|
|
|
|
|
|
|
tec = Client() #(host="localhost", port=6667)
|
2020-10-01 06:21:43 +08:00
|
|
|
tec.set_param("s-h", 1, "t0", 20)
|
2020-12-17 05:14:21 +08:00
|
|
|
print(tec.get_pwm())
|
2020-10-01 06:21:43 +08:00
|
|
|
print(tec.get_pid())
|
2020-12-17 05:14:21 +08:00
|
|
|
print(tec.get_pwm())
|
|
|
|
print(tec.get_postfilter())
|
2020-10-01 06:21:43 +08:00
|
|
|
print(tec.get_steinhart_hart())
|
2020-09-29 08:52:46 +08:00
|
|
|
for data in tec.report_mode():
|
|
|
|
print(data)
|