Create an instance of a HttpThermostat In contrast to the normal thermostat class, this class constructor needs an argument more. The added argument is the url string. This url must contain a url to an existing getter API (REST)
Getting state of cooling
this method returns a promise with a boolean value
Getting state of heating
this method returns a promise with a boolean value
Returning if the thermostat is cooling
this message returns state of the thermostat as a boolean
Returning if the thermostat is heating
this message returns state of the thermostat as a boolean
Getting result ( temperature )
this method returns a promise with a number value
Getting temperature range
this method returns the range number
Getting wanted temperature
this method returns the wanted number
Setting the current temperature
this method returns current temperature number
This method stores the result in the inherited thermostat class
this method returns a promise with an unknown value
updating the current temperature, it returns an Thermostat result object
this method returns an instance of the interface thermostatResult
Generated using TypeDoc
HTTPTHermostat Class
This class contains all methods to create a httpThermostat.
An instance of this can request data from a url ( temperature ), can handle this by using a promise, and return the data, or if the thermostat is heating or cooling.