C# 클래스 Microsoft.IoT.DeviceCore.Sensors.AnalogSensorReading

Represents an analog sensor reading.
상속: ISensorReading
파일 보기 프로젝트 열기: jbienzms/iot-devices 1 사용 예제들

공개 메소드들

메소드 설명
AnalogSensorReading ( int val, double ratio ) : System

Initializes a new AnalogSensorReading instance.

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

Initializes a new AnalogSensorReading instance.

메소드 상세

AnalogSensorReading() 공개 메소드

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. ///
리턴 System

AnalogSensorReading() 공개 메소드

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. ///
리턴 System