Package com.diozero.devices
Interface ThermometerInterface
-
- All Superinterfaces:
AutoCloseable
,DeviceInterface
,SensorInterface
- All Known Implementing Classes:
BME280
,BME680
,BME68x
,BMP180
,HTS221
,LM73
,LPS25H
,TMP36
,W1ThermSensor
public interface ThermometerInterface extends SensorInterface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getTemperature()
Get temperature in degrees celsius-
Methods inherited from interface com.diozero.api.DeviceInterface
close
-
-
-
-
Method Detail
-
getTemperature
float getTemperature() throws RuntimeIOException
Get temperature in degrees celsius- Returns:
- Temperature (deg C)
- Throws:
RuntimeIOException
- if an I/O error occurs
-
-