Class SGP30

java.lang.Object
com.diozero.devices.SGP30
All Implemented Interfaces:
Closeable, AutoCloseable, Runnable

public class SGP30
extends Object
implements Closeable, Runnable
  • Field Details

  • Constructor Details

    • SGP30

      public SGP30​(int controller)
    • SGP30

      public SGP30​(int controller, int address)
  • Method Details

    • start

      public void start​(Consumer<SGP30.SGP30Measurement> consumer)
    • stop

      public void stop()
    • run

      public void run()
      Specified by:
      run in interface Runnable
    • getLastMeasurement

      public SGP30.SGP30Measurement getLastMeasurement()
    • getFeatureSetVersion

      public SGP30.FeatureSetVersion getFeatureSetVersion()
    • getSerialId

      public long getSerialId()
    • measureTest

      public void measureTest()
    • rawMeasurement

      public SGP30.RawMeasurement rawMeasurement()
    • setHumidityCompensation

      public void setHumidityCompensation​(short humidity)
    • getIaqBaseline

      public SGP30.SGP30Measurement getIaqBaseline()
    • setIaqBaseline

      public void setIaqBaseline​(SGP30.SGP30Measurement baseline)
    • getTvocInceptiveBaseline

      public int getTvocInceptiveBaseline()
    • setTvocInceptiveBaseline

      public void setTvocInceptiveBaseline​(short baseline)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable