Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpThermostat

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();

Hierarchy

  • HttpThermostat

Index

Constructors

constructor

  • new HttpThermostat(_temperature: number, _range: number, _url: string): HttpThermostat

Properties

Private _range

_range: number

Private _temperature

_temperature: number

Private _url

_url: string

currentTemp

currentTemp: number = 0

thermostat

thermostat: any

Methods

getResult

  • getResult(): any

Generated using TypeDoc