Table of Contents

Class SensorReading

Namespace
DotCompute.Abstractions.Ports
Assembly
DotCompute.Abstractions.dll

A reading from a device sensor.

public sealed record SensorReading : IEquatable<SensorReading>
Inheritance
SensorReading
Implements
Inherited Members

Properties

MaxValue

Maximum safe value.

public double? MaxValue { get; init; }

Property Value

double?

MinValue

Minimum safe value.

public double? MinValue { get; init; }

Property Value

double?

Name

Sensor name.

public required string Name { get; init; }

Property Value

string

Timestamp

Timestamp of reading.

public DateTimeOffset Timestamp { get; init; }

Property Value

DateTimeOffset

Type

Sensor type.

public required SensorType Type { get; init; }

Property Value

SensorType

Unit

Unit of measurement.

public required string Unit { get; init; }

Property Value

string

Value

Current value.

public required double Value { get; init; }

Property Value

double