Thermostat class that can construct and manage a Thermostat. The thermostat can have wanted/current temperature using the setWantedTemperature() & setTemperature() functions. You can also set the Range.
import Thermostat from './Thermostat' const thermo = new Thermostat(); thermo.setTemperature(17); thermo.setRange(2); thermo.getRange() thermo.setWantedTemperature(23); thermo.checkTemperature();
Generated using TypeDoc
Thermostat class that can construct and manage a Thermostat. The thermostat can have wanted/current temperature using the setWantedTemperature() & setTemperature() functions. You can also set the Range.
import Thermostat from './Thermostat' const thermo = new Thermostat(); thermo.setTemperature(17); thermo.setRange(2); thermo.getRange() thermo.setWantedTemperature(23); thermo.checkTemperature();