Remarks

SensorReading
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.DataLoggers.SensorReading
Characteristic Locus
Inheritance System.Object > SensorReading
Namespace Meadow.Foundation.DataLoggers
Assembly SensorReading.dll

Syntax

public class SensorReading : object

Constructors

SensorReading(String, String, DateTime)

Create a new SensorReading object.

Declaration
public SensorReading(string key, string value, DateTime createdAt)

Parameters

Type Name Description
System.String key

Name of the reading (e.g. temperature, humidity etc.)

System.String value

Value read from the sensor.

DateTime createdAt

DateTime the sensor reading was taken.

Properties

CreatedAt

Date and time the reading was taken.

Declaration
public DateTime CreatedAt { get; set; }

Property Value

Type Description
DateTime

Key

Name of the sensor reading.

Declaration
public string Key { get; set; }

Property Value

Type Description
System.String

Value

Value read from the sensor.

Declaration
public string Value { get; set; }

Property Value

Type Description
System.String