Options
All
  • Public
  • Public/Protected
  • All
Menu

A class that returns a Promise container from a given url

Hierarchy

  • HTTPTemperatureSensor

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

httpURL

httpURL: string

temperature

temperature: number

url

url: string

Methods

getTemperature

  • getTemperature(): Promise<number>
  • A asynchrone method that returns a Promise container

    Returns Promise<number>

    A Promise container containing the number given from the API Request

Generated using TypeDoc