Table of Contents

Class DeviceStatus

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

Parsed response after requesting the DeviceStatus.

public class DeviceStatus
Inheritance
DeviceStatus

Constructors

DeviceStatus(byte[])

Initializes a new instance of the DeviceStatus class.

public DeviceStatus(byte[] data)

Parameters

data byte[]

Raw data from the response.

Exceptions

ArgumentOutOfRangeException

When less than 4 bytes are provided.

Properties

FanFailureBlockedOrBroken

Gets a value indicating whether "Fan failure" bit is set. The fan may be mechanically blocked or broken. Check the SPS30 data sheet for more information.

public bool FanFailureBlockedOrBroken { get; }

Property Value

bool

FanSpeedOutOfRange

Gets a value indicating whether "Fan speed out of range" bit is set. It's either too high or too low. Check the SPS30 data sheet for more information.

public bool FanSpeedOutOfRange { get; }

Property Value

bool

LaserFailure

Gets a value indicating whether "Laser failure" bit is set. This can occur at high temperatures outside of specifications or when the laser module is defective. Check the SPS30 data sheet for more information.

public bool LaserFailure { get; }

Property Value

bool

RawRegister

Gets the raw value returned by the device.

public uint RawRegister { get; }

Property Value

uint

Methods

ToString()

Conveniently show the status in a single string.

public override string ToString()

Returns

string

The device status as a convenient string.