public class HTS221 extends Object implements ThermometerInterface, HygrometerInterface, Closeable
Constructor and Description |
---|
HTS221() |
HTS221(int controller,
int address) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
float |
getRelativeHumidity()
Get the relative humidity in percent.
|
float |
getTemperature()
Get temperature (degrees C).
|
public HTS221()
public HTS221(int controller, int address) throws RuntimeIOException
RuntimeIOException
public float getRelativeHumidity()
HygrometerInterface
getRelativeHumidity
in interface HygrometerInterface
public float getTemperature()
getTemperature
in interface ThermometerInterface
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2016–2017 mattjlewis. All rights reserved.