Table of Contents

Class Hdc1080.Sim

Namespace
Pamoja.Sensors
Assembly
Pamoja.Sensors.dll

An HDC1080 that is not there, for a bus with nothing plugged in.

public static class Hdc1080.Sim
Inheritance
Hdc1080.Sim
Inherited Members

Fields

Celsius

The temperature Part() reports.

public const float Celsius = 22.5

Field Value

float

RelativeHumidity

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

public const float RelativeHumidity = 45

Field Value

float

Methods

Part()

Makes a part reading Celsius and RelativeHumidity.

public static WordPart Part()

Returns

WordPart

The part, to put on a simulated bus.

Reporting(float, float)

Makes a part that reads what it is asked to.

public static WordPart Reporting(float celsius, float relativeHumidity)

Parameters

celsius float

The temperature it reports.

relativeHumidity float

The humidity it reports, as a percentage.

Returns

WordPart

The part, to put on a simulated bus.