Class Sht3x.Sim
An SHT3x that is not there, for a bus with nothing plugged in.
public static class Sht3x.Sim
- Inheritance
-
Sht3x.Sim
- Inherited Members
Remarks
It takes Sensirion's 16-bit commands: every single-shot measurement and a periodic fetch answer with the reading and its checksums, the status command with the status a part reports after a reset, and a reset, the heater, and the rest with nothing.
Fields
Celsius
The temperature Part(byte) reports.
public const float Celsius = 22.5
Field Value
RelativeHumidity
The relative humidity Part(byte) reports, as a percentage.
public const float RelativeHumidity = 45
Field Value
Methods
Part(byte)
Makes a part reading Celsius and RelativeHumidity.
public static CommandPart Part(byte address)
Parameters
addressbyteThe address it answers to.
Returns
- CommandPart
The part, to put on a simulated bus.
Reporting(byte, float, float)
Makes a part that reads what it is asked to.
public static CommandPart Reporting(byte address, float celsius, float relativeHumidity)
Parameters
addressbyteThe address it answers to.
celsiusfloatThe temperature it reports.
relativeHumidityfloatThe humidity it reports, as a percentage.
Returns
- CommandPart
The part, to put on a simulated bus.