SGP30 class

Sensirion eCO2 gas sensor, an air quality detection sensor.

See for more

Constructors

SGP30(I2C i2c, [bool init = true])
Creates a SGP30 sensor instance that uses the i2c bus.

Properties

hashCode int
The hash code for this object.
no setterinherited
i2c I2C
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getFeatureSetVersion() FeatureSetVersion
Returns the internal features.
getIaqBaseline() SGP30result
Returns the baseline.
getSerialId() int
Returns the sensor serial ID.
getTvocInceptiveBaseline() int
Returns the baseline as an int value.
iaqInit() → void
Initializes the sensor for measurement.
isInitialized() bool
Checks if the sensor is initialized for measurement.
measureIaq() SGP30result
Returns the co2Equivalent and totalVOC measurement.
measureRaw() RawMeasurement
Returns the H2 and Ethanol measurement.
measureTest() → void
Performs an internal test. DO NOT call this method after SGP30.iaqInit because this test resets the sensor initialization!
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setHumidityCompensation(int humidity) → void
Sets the absolute humidity for internal humidity compensation.
setIaqBaseline(SGP30result baseline) → void
Sets the baseline of the sensor.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited