nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ ext_sensors_air_quality_get()

int ext_sensors_air_quality_get ( uint16_t * bsec_air_quality)

#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_qualityPointer 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
-ENOTSUPif getting air quality is not supported.