Skip to content

TempSensorReading

Namespace: MQTT_Receiver_Worker.MQTT.Models

Represents a temperature sensor reading from an MQTT device.

public class TempSensorReading

Inheritance ObjectTempSensorReading

Properties

Meta

Gets or sets additional metadata associated with the sensor reading.
This includes information for the bulk insert

public TempSensorMeta Meta { get; set; }

Property Value

TempSensorMeta

Sequence

Gets or sets the sequence number of the reading.
Used to track the order of readings and detect missing data.

public Nullable<Int32> Sequence { get; set; }

Property Value

Nullable<Int32>

Timestamp

Gets or sets the timestamp when the reading was taken.
The value represents Unix time (seconds since epoch).

public long Timestamp { get; set; }

Property Value

Int64

Value

Gets or sets the temperature values from the sensor.
An array is used as the sensor might provide multiple reading points.

public Nullable<Double>[] Value { get; set; }

Property Value

Nullable<Double>[]

Constructors

TempSensorReading()

public TempSensorReading()