Skip to content

Commit

Permalink
test: enable all sensors (same as basic library example)
Browse files Browse the repository at this point in the history
  • Loading branch information
facchinm committed Mar 20, 2024
1 parent 741cd1b commit 6b572eb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/AirQualityClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,22 @@ int AirQualityClass::begin()
Serial.println("Probably wrong BSEC library from lib manager");
}

bsec_virtual_sensor_t sensorList[10] = {
BSEC_OUTPUT_RAW_TEMPERATURE,
BSEC_OUTPUT_RAW_PRESSURE,
BSEC_OUTPUT_RAW_HUMIDITY,
BSEC_OUTPUT_RAW_GAS,
bsec_virtual_sensor_t sensorList[13] = {
BSEC_OUTPUT_IAQ,
BSEC_OUTPUT_STATIC_IAQ,
BSEC_OUTPUT_CO2_EQUIVALENT,
BSEC_OUTPUT_BREATH_VOC_EQUIVALENT,
BSEC_OUTPUT_RAW_TEMPERATURE,
BSEC_OUTPUT_RAW_PRESSURE,
BSEC_OUTPUT_RAW_HUMIDITY,
BSEC_OUTPUT_RAW_GAS,
BSEC_OUTPUT_STABILIZATION_STATUS,
BSEC_OUTPUT_RUN_IN_STATUS,
BSEC_OUTPUT_SENSOR_HEAT_COMPENSATED_TEMPERATURE,
BSEC_OUTPUT_SENSOR_HEAT_COMPENSATED_HUMIDITY,
BSEC_OUTPUT_GAS_PERCENTAGE
};

iaqSensor->updateSubscription(sensorList, 10, BSEC_SAMPLE_RATE_CONT);
iaqSensor->updateSubscription(sensorList, 13, BSEC_SAMPLE_RATE_CONT);
if (checkIaqSensorStatus() == STATUS_ERROR){
return 0;
}
Expand Down

0 comments on commit 6b572eb

Please sign in to comment.