Interface ThermometerInterface

All Superinterfaces:
AutoCloseable, DeviceInterface, SensorInterface
All Known Implementing Classes:
BME280, BME680, BMP180, HTS221, LM73, LPS25H, TMP36, W1ThermSensor

public interface ThermometerInterface
extends SensorInterface
  • Method Summary

    Modifier and Type Method Description
    float getTemperature()
    Get temperature in degrees celsius

    Methods inherited from interface com.diozero.api.DeviceInterface

    close
  • Method Details

    • getTemperature

      float getTemperature() throws RuntimeIOException
      Get temperature in degrees celsius
      Returns:
      Temperature (deg C)
      Throws:
      RuntimeIOException - if an I/O error occurs