UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

TH02 Class

Module: th02

This module defines the TH02 interface for libth02
Note: For use on Intel(R) Edison with an Arduino* breakout board, Intel Edison must be set to 3 V rather than 5 V.
th02.jpg

Methods

TH02

(
  • bus
  • addr
)
Number

Instantiates a TH02 object

Parameters:

  • bus Number

    undefined

  • addr Number

    undefined

Returns:

Number:

getTemperature

() Number

Gets the temperature value from the sensor.

Returns:

Number:

getHumidity

() Number

Gets the humidity value from the sensor.

Returns:

Number:

getStatus

() Boolean

Gets the sensor status.

Returns:

Boolean:

name

() String

Returns the name of the component

Returns:

String: