forked from M-Labs/thermostat
atse
bd0f0fe5b7
The Steinhart-Hart equation was changed in code long ago to the B-parameter equation. Rename references to it and the interface accordingly. The `s-h` command is now `b-p`. The reason the name "B-Parameter" equation was chosen over "Beta-Parameter" was due to its easier searchability.
12 lines
280 B
Python
12 lines
280 B
Python
from pytec.client import Client
|
|
|
|
tec = Client() #(host="localhost", port=6667)
|
|
tec.set_param("b-p", 1, "t0", 20)
|
|
print(tec.get_pwm())
|
|
print(tec.get_pid())
|
|
print(tec.get_pwm())
|
|
print(tec.get_postfilter())
|
|
print(tec.get_b_parameter())
|
|
for data in tec.report_mode():
|
|
print(data)
|