C# Class Microsoft.IoT.Devices.Sensors.AnalogSensor

Driver for a generic analog sensor.
Inheritance: IAnalogSensor, IScheduledDevice
Show file Open project: jbienzms/iot-devices Class Usage Examples

Public Methods

Method Description
AnalogSensor ( ) : System

Initializes a new AnalogSensor instance.

Dispose ( ) : void
GetCurrentReading ( ) : AnalogSensorReading

Gets the current sensor reading.

Private Methods

Method Description
EnsureInitialized ( ) : void
Update ( bool raiseEvent ) : void

Method Details

AnalogSensor() public method

Initializes a new AnalogSensor instance.
public AnalogSensor ( ) : System
return System

Dispose() public method

public Dispose ( ) : void
return void

GetCurrentReading() public method

Gets the current sensor reading.
public GetCurrentReading ( ) : AnalogSensorReading
return Microsoft.IoT.DeviceCore.Sensors.AnalogSensorReading