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.

SI7005 Class

Module: si7005

Methods

SI7005

(
  • bus
  • pin
)
Number

Instantiates a SI7005 object

Parameters:

  • bus Number

    number of used bus

  • pin Number

    gpio number for chip select pin

Returns:

Number:

getTemperatureRaw

() Number

Get temperature measurement.

Returns:

Number:

getTemperatureCelsius

() Number

Get temperature measurement.

Returns:

Number:

getHumidityRaw

() Number

Get relative humidity measurement.

Returns:

Number:

getHumidityRelative

() Number

Get relative humidity measurement.

Returns:

Number:

getModuleName

() String

Returns sensor module name

Returns:

String:

isAvailable

() Boolean

Detects the sensor to ensure it is connected as required.

Returns:

Boolean:

enableHeater

()

Enables the integrated heating element.

disableHeater

()

Disables the integrated heating element.

enableFastConversionMode

()

Enables fast conversion mode.

disableFastConversionMode

()

Enables fast conversion mode.