07-09-2019 03:47 AM - edited 07-09-2019 04:16 AM
Are some of the virtual sensors depreciated or am I missing something.
I am using BSEC 1.4.7.3 with a MBE680.
I've based my code on the "basic_config_state.ino" example.
When compiling I found the 4 variables aere all initiated but not used.
Have these been depreciated or they used in the compiled code? I could not find any documentation on them.
I also found this line of code in the same example
checkIaqSensorStatus();
Ihave not been able to find any reference to it in any of the app notes or other files (that I can read). Is it a useful statement?
Thanks, John
Solved! Go to Solution.
07-09-2019 08:16 AM
Hi JohnRob,
Can you send a link to your reference?
Regards,
kgoveas
07-09-2019 02:03 PM
BSEC works on a subscription mechanism, and in the basic_config_state.ino example of BSEC v1.4.7.3, here is the list of virtual sensors subscribed to:
bsec_virtual_sensor_t sensorList[7] = {
BSEC_OUTPUT_RAW_TEMPERATURE,
BSEC_OUTPUT_RAW_PRESSURE,
BSEC_OUTPUT_RAW_HUMIDITY,
BSEC_OUTPUT_RAW_GAS,
BSEC_OUTPUT_IAQ,
BSEC_OUTPUT_SENSOR_HEAT_COMPENSATED_TEMPERATURE,
BSEC_OUTPUT_SENSOR_HEAT_COMPENSATED_HUMIDITY,
};
iaqSensor.updateSubscription(sensorList, 7, BSEC_SAMPLE_RATE_LP);
To enable more virtual sensor outputs like eCO2, bVOC-eq, etc. you would need to add these to the sensorList array element above (and update the size of the array and number of virtual sensors in the 2nd argument of updateSubscription(...)).
07-09-2019 06:53 PM
kgoveas,
The sample file was in the BSEC 1.4.7.3 I downloaded from the Bosch site.
John
07-09-2019 07:04 PM
Thank for the reply but i guess my question wasn't clear. I understand the subscription process, however the specific parameters I listed are shown in at least one of the examples, however they are not listed in the documentation (see below)
Hence my question, are they still active measurements?
John