Table of Contents

Class Sht3x.Sim

Namespace
Pamoja.Sensors
Assembly
Pamoja.Sensors.dll

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

float

RelativeHumidity

The relative humidity Part(byte) reports, as a percentage.

public const float RelativeHumidity = 45

Field Value

float

Methods

Part(byte)

Makes a part reading Celsius and RelativeHumidity.

public static CommandPart Part(byte address)

Parameters

address byte

The 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

address byte

The address it answers to.

celsius float

The temperature it reports.

relativeHumidity float

The humidity it reports, as a percentage.

Returns

CommandPart

The part, to put on a simulated bus.