Remarks
SensorReading | |
---|---|
Status | |
Source code | GitHub |
NuGet package |
Characteristic | Locus |
---|---|
Inheritance | object > SensorReading |
Inherited Members | object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString() |
Namespace | Meadow.Foundation.DataLoggers |
Assembly | SensorReading.dll |
Syntax
public class SensorReading
Constructors
SensorReading(string, string, DateTime)
Create a new SensorReading object.
Declaration
public SensorReading(string key, string value, DateTime createdAt)
Parameters
Type | Name | Description |
---|---|---|
string | key | Name of the reading (e.g. temperature, humidity etc.) |
string | value | Value read from the sensor. |
DateTime | createdAt | DateTime the sensor reading was taken. |
Remarks
SensorReading | |
---|---|
Status | |
Source code | GitHub |
NuGet package |
Properties
CreatedAt
Date and time the reading was taken.
Declaration
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Remarks
SensorReading | |
---|---|
Status | |
Source code | GitHub |
NuGet package |
Key
Name of the sensor reading.
Declaration
public string Key { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
SensorReading | |
---|---|
Status | |
Source code | GitHub |
NuGet package |
Value
Value read from the sensor.
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
SensorReading | |
---|---|
Status | |
Source code | GitHub |
NuGet package |