BME680 class
Bosch BME680 sensor for temperature, humidity, pressure and gas sensor (IAQ Indoor air quality).
IAQ is in an index that can have values between 0 and 500 with resolution of 1 to indicate or quantify the quality of the air available in the surrounding.
See for more
- BM680 example code
- Source code
- Datasheet
- This implementation is derived from project DIOZero
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- i2c → I2C
-
final
- i2cAddress → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getChipId(
) → int - Returns the internal chip ID.
-
getFilter(
) → FilterSize - Returns the IIR filter size.
-
getGasHeaterProfile(
) → HeaterProfile - Returns the gas sensor conversion profile.
-
getHumidityOversample(
) → OversamplingMultiplier - Returns the humidity oversampling.
-
getPowerMode(
) → PowerMode - Returns the power mode.
-
getPressureOversample(
) → OversamplingMultiplier - Returns the pressure oversampling.
-
getProfileDuration(
) → int - Returns the total measurement duration im ms.
-
getTemperatureOversample(
) → OversamplingMultiplier - Returns the temperature oversampling.
-
getValues(
) → BME680result - Returns a BME680result with temperature, pressure, humidity and IAQ or throws an exception after sensorReadRetryCounter retries to read sensor data.
-
isGasMeasurementEnabled(
) → bool - Returns the current gas status.
-
isHeaterEnabled(
) → bool - Checks if the heater on the sensor enabled.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setFilter(
FilterSize filter) → void -
Sets the IIR
filter
size. -
setGasConfig(
HeaterProfile profile, int heaterTemperature, int heaterDuration) → void -
Sets the temperature
profile
,heaterDuration
and theheaterTemperature
of gas sensor. -
setGasHeaterProfile(
HeaterProfile heaterProfile) → void -
Sets the current gas sensor conversion
heaterProfile
. Select one of the 10 configured heating durations/set points. -
setGasMeasurementEnabled(
bool gasMeasurementsEnabled) → void -
gasMeasurementsEnabled
enables/disables the gas sensor. -
setHeaterEnabled(
bool heaterEnabled) → void -
heaterEnabled
enables/disables the heater on the sensor. -
setHumidityOversample(
OversamplingMultiplier value) → void -
Sets the humidity oversampling to
value
. -
setPowerMode(
PowerMode powerMode) → void -
Sets the
powerMode
of the sensor. -
setPressureOversample(
OversamplingMultiplier value) → void -
Sets the pressure oversampling to
value
. -
setProfileDuration(
int duration) → void -
Sets the profile
duration
of the sensor. -
setSensorSettings(
HeaterProfile profile, int heaterTemperature, int heaterDuration, FilterSize filterSize) → void -
Sets the temperature
profile
,heaterDuration
and theheaterTemperature
of gas sensor.filterSize
sets IIR filter size -
setTemperatureOffset(
int offset) → void -
Sets temperature offset in celsius. If set, the temperature will be
increased by given
offset
in celsius. -
setTemperatureOversample(
OversamplingMultiplier value) → void -
Sets the temperature oversampling to
value
. -
softReset(
) → void - Initiates a soft reset
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited