setSensorSettings method
void
setSensorSettings(
- HeaterProfile profile,
- int heaterTemperature,
- int heaterDuration,
- FilterSize filterSize,
Sets the temperature profile
, heaterDuration
and the heaterTemperature
of gas sensor.
filterSize
sets IIR filter size
- Target heater profile, between 0 and 9
- Target temperature in degrees celsius, between 200 and 400
- Target duration in milliseconds, between 1 and 4032
Implementation
void setSensorSettings(HeaterProfile profile, int heaterTemperature,
int heaterDuration, FilterSize filterSize) {
setGasConfig(profile, heaterTemperature, heaterDuration);
setPowerMode(PowerMode.sleep);
// Set the filter size
if (filterSize != FilterSize.none) {
setFilter(filterSize);
}
// Selecting heater control for the sensor
// Selecting heater T,P oversampling for the sensor
// Selecting humidity oversampling for the sensor
// Selecting the runGas and NB conversion settings for the sensor
}