Edit

Share via


Ccs811Sensor Class

Definition

Ultra-Low Power Digital Gas Sensor for Monitoring Indoor Air Quality Documentation can be found here: https://www.sciosense.com/products/environmental-sensors/ccs811-gas-sensor-solution/

public class Ccs811Sensor : IDisposable
type Ccs811Sensor = class
    interface IDisposable
Public Class Ccs811Sensor
Implements IDisposable
Inheritance
Ccs811Sensor
Implements

Constructors

Ccs811Sensor(I2cDevice, GpioController, Int32, Int32, Int32, Boolean)

The CCS811 sensor constructor

Fields

I2cFirstAddress

The first default I2C address when the Address pin is put to low

I2cSecondAddress

The second default I2C address when the Address pin is put to high

I2cTypicalFrequency

The typical operating speed for the bus Note that minimum is 10 KHz and the maximum is 400 KHz The device can operate in Stretching mode is the transfer is too fast. This stretching may not be well supported in all the hardware, in case of issue, it is recommended to lower the operating frequency

Properties

ApplicationVersion

Get the application version

BaselineAlgorithmCalculation

Get or set the encoded version of the current baseline used in Algorithm Calculations

BootloaderVersion

Get the boot loader version

Error

Get the error

HardwareIdentification

Get the hardware identification, it has to be 0x81

HardwareVersion

Hardware version should be 0x1X, any X seems valid

InterruptEnable

Is the hardware interrupt enabled

IsDataReady

Do we have data ready to read?

OperationMode

Set or get the operation mode

WakeEnable

Is the wake feature enabled

Methods

Dispose()

Dispose the sensor

SetEnvironmentData(Temperature, Ratio)

Set the environmental data, this is impacting the equivalent calculation of the gas.

SetEnvironmentData(Temperature, RelativeHumidity)

Set the environmental data, this is impacting the equivalent calculation of the gas.

SetThreshold(VolumeConcentration, VolumeConcentration)

Set the threshold for the equivalent CO2. The pinInterrupt should be existing so interruptions are activated. If not, then the function will return false

TryReadGasData(VolumeConcentration, VolumeConcentration)

Read the equivalent CO2 in ppm and equivalent Total Volatile Compound in ppb

TryReadGasData(VolumeConcentration, VolumeConcentration, ElectricCurrent, Int32)

Read the equivalent CO2 in ppm and equivalent Total Volatile Compound in ppb

Events

MeasurementReady

The event handler for the measurement

Applies to