Class DeviceStatus
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
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
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
RawRegister
Gets the raw value returned by the device.
public uint RawRegister { get; }
Property Value
Methods
ToString()
Conveniently show the status in a single string.
public override string ToString()
Returns
- string
The device status as a convenient string.