Constructors
constructor
- new HttpThermostat(_temperature: number, _range: number, _url: string): HttpThermostat
-
Parameters
-
_temperature: number
-
_range: number
-
_url: string
Properties
Private _range
_range: number
Private _temperature
_temperature: number
Private _url
_url: string
currentTemp
currentTemp: number = 0
thermostat
thermostat: any
HttpThermostat class that can construct a Thermostat that takes in a value, range & url.
import HttpThermostat from './HttpThermostat' const Tempthermo = new HttpThermostat(20,2,'http://dummy-sensors.azurewebsites.net/api/sensor/abba5'); Tempthermo.getResult();