Table of Contents

Class Measurement

Namespace
Iot.Device.Sps30.Entities
Assembly
Iot.Device.Sps30.dll

Measurement class that can house both response types (Float vs UInt16) by using doubles. Depending on the amount of bytes passed, we can deduct the type.

public class Measurement
Inheritance
Measurement

Constructors

Measurement(byte[])

Initializes a new instance of the Measurement class.

public Measurement(byte[] data)

Parameters

data byte[]

The response data on the requested measurement.

Properties

Format

Gets or sets the format assumed when parsing the data for this measurement instance.

public MeasurementOutputFormat Format { get; protected set; }

Property Value

MeasurementOutputFormat

MassConcentrationPm10

Gets or sets Mass Concentration PM1.0 [µg/m³].

public MassConcentration MassConcentrationPm10 { get; protected set; }

Property Value

MassConcentration

MassConcentrationPm100

Gets or sets Mass Concentration PM10.0 [µg/m³].

public MassConcentration MassConcentrationPm100 { get; protected set; }

Property Value

MassConcentration

MassConcentrationPm25

Gets or sets Mass Concentration PM2.5 [µg/m³].

public MassConcentration MassConcentrationPm25 { get; protected set; }

Property Value

MassConcentration

MassConcentrationPm40

Gets or sets Mass Concentration PM4.0 [µg/m³].

public MassConcentration MassConcentrationPm40 { get; protected set; }

Property Value

MassConcentration

NumberConcentrationPm05

Gets or sets Number Concentration PM0.5 [#/cm³].

public double NumberConcentrationPm05 { get; protected set; }

Property Value

double

NumberConcentrationPm10

Gets or sets Number Concentration PM1.0 [#/cm³].

public double NumberConcentrationPm10 { get; protected set; }

Property Value

double

NumberConcentrationPm100

Gets or sets Number Concentration PM10.0 [#/cm³].

public double NumberConcentrationPm100 { get; protected set; }

Property Value

double

NumberConcentrationPm25

Gets or sets Number Concentration PM2.5 [#/cm³].

public double NumberConcentrationPm25 { get; protected set; }

Property Value

double

NumberConcentrationPm40

Gets or sets Number Concentration PM4.0 [#/cm³].

public double NumberConcentrationPm40 { get; protected set; }

Property Value

double

TypicalParticleSize

Gets or sets Typical Particle Size depending on format (in µm for Float and nm for ushort, see MeasurementOutputFormat).

public Length TypicalParticleSize { get; protected set; }

Property Value

Length

Methods

ToString()

Conveniently show the measurement in a single string.

public override string ToString()

Returns

string

The measurement as a convenient string.