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
MinValue
Minimum safe value.
public double? MinValue { get; init; }
Property Value
Name
Sensor name.
public required string Name { get; init; }
Property Value
Timestamp
Timestamp of reading.
public DateTimeOffset Timestamp { get; init; }
Property Value
Type
Sensor type.
public required SensorType Type { get; init; }
Property Value
Unit
Unit of measurement.
public required string Unit { get; init; }
Property Value
Value
Current value.
public required double Value { get; init; }