Class TemperatureReading
Temperature class for storing information from a temperature measurement.
Inheritance
Inherited Members
Namespace: RFID.SensorTag
Assembly: SensorTag.dll
Syntax
public class TemperatureReading
Remarks
The SensorDataReader will read the raw temperature data from the tag and store it in the RawTempFieldData field. If the calibration data for this tag is properly read, that calibration data will be applied to the raw temperature data and the resulting value will be stored in the Temperature field of the class.
Note, however, that the sensor reading application will only be notified of validly calibrated temperature readings. The RawTempFieldData and RawTSSI fields are provided as additional information, but should only be used during a concerted effort to tune the performance of the temperature read operation.
Constructors
TemperatureReading(String, Nullable<DateTime>, Double, UInt16)
Constructor for temperature data.
Declaration
public TemperatureReading(string EPCArg = "", DateTime? dateTimeStampArg = null, double rawTempFieldDataArg = 0, ushort rawTSSIArg = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | EPCArg | EPC of the tag. Formatted as pairs of hex digits separated by hyphens ('-'). |
System.Nullable<System.DateTime> | dateTimeStampArg | Timestamp of when the temperature was read. |
System.Double | rawTempFieldDataArg | Uncalibrated temperature code read from tag. |
System.UInt16 | rawTSSIArg | TSSI of tag being read. |
Fields
DateTimestamp
Declaration
public DateTime DateTimestamp
Field Value
Type | Description |
---|---|
System.DateTime | Timestamp of when the temperature was read. |
EPC
Declaration
public string EPC
Field Value
Type | Description |
---|---|
System.String | EPC of the tag. Formatted as pairs of hex digits separated by hyphens ('-'). |
INVALID_TEMP
Declaration
public const int INVALID_TEMP = -9999
Field Value
Type | Description |
---|---|
System.Int32 | Constant value for Temperature field to indicate the Temperature value has not been calibrated. |
RawTempFieldData
Declaration
public double RawTempFieldData
Field Value
Type | Description |
---|---|
System.Double | Uncalibrated temperature code read from tag. |
RawTSSI
Declaration
public int RawTSSI
Field Value
Type | Description |
---|---|
System.Int32 | TSSI of tag being read. |
Temperature
Declaration
public double Temperature
Field Value
Type | Description |
---|---|
System.Double | Temperature after calibration data applied. If calibration has not been applied this field will be returned as INVALID_TEMP. |