Skip to main content

Interface ISensorMonitor

Represents a sensor monitor interface for starting and stopping sensor sampling.

Assembly: Meadow.Contracts.dll
View Source
Declaration
public interface ISensorMonitor

Methods

StartSampling(ISamplingSensor)

Starts sensor sampling.

View Source
Declaration
void StartSampling(ISamplingSensor sensor)
Parameters
TypeNameDescription
Meadow.Peripherals.Sensors.ISamplingSensorsensorSensor to start sampling

StopSampling(ISamplingSensor)

Stops sensor sampling.

View Source
Declaration
void StopSampling(ISamplingSensor sensor)
Parameters
TypeNameDescription
Meadow.Peripherals.Sensors.ISamplingSensorsensorSensor to stop sampling

Events

SampleAvailable

Raised when a monitored sensor is read

View Source
Declaration
event EventHandler<object> SampleAvailable
Event Type

System.EventHandler<System.Object>