#include <applications/asset_tracker_v2/src/ext_sensors/ext_sensors.h>
Get air quality. Air quality calculations are only available when enabling the Bosch BSEC library.
- Parameters
-
[out] | bsec_air_quality | Pointer to variable containing air quality reading in Indoor-Air-Quality (IAQ). This number is calculated by internal algorithms in the Bosch BSEC library and is a product of multiple readings from several sensors over time. The IAQ value ranges from 0 (clean air) to 500 (heavily polluted air) |
- Returns
- 0 on success or negative error value on failure.
- Return values
-
-ENOTSUP | if getting air quality is not supported. |