C# Class Microsoft.IoT.DeviceCore.Sensors.AnalogSensorReading

Represents an analog sensor reading.
Inheritance: ISensorReading
Mostrar archivo Open project: jbienzms/iot-devices Class Usage Examples

Public Methods

Method Description
AnalogSensorReading ( int val, double ratio ) : System

Initializes a new AnalogSensorReading instance.

AnalogSensorReading ( int val, double ratio, DateTimeOffset timestamp ) : System

Initializes a new AnalogSensorReading instance.

Method Details

AnalogSensorReading() public method

Initializes a new AnalogSensorReading instance.
public AnalogSensorReading ( int val, double ratio ) : System
val int /// The value of the reading. ///
ratio double /// The ratio of the reading as a percentage of the range. ///
return System

AnalogSensorReading() public method

Initializes a new AnalogSensorReading instance.
public AnalogSensorReading ( int val, double ratio, DateTimeOffset timestamp ) : System
val int /// The value of the reading. ///
ratio double /// The ratio of the reading as a percentage of the range. ///
timestamp DateTimeOffset /// The time when the sensor reported the reading. ///
return System