Interface ISensorMonitor
Represents a sensor monitor interface for starting and stopping sensor sampling.
Assembly: Meadow.Contracts.dll
View Source
public interface ISensorMonitor
Methods
StartSampling(ISamplingSensor)
Starts sensor sampling.
View Source
void StartSampling(ISamplingSensor sensor)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Peripherals.Sensors.ISamplingSensor | sensor | Sensor to start sampling |
StopSampling(ISamplingSensor)
Stops sensor sampling.
View Source
void StopSampling(ISamplingSensor sensor)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Peripherals.Sensors.ISamplingSensor | sensor | Sensor to stop sampling |
Events
SampleAvailable
Raised when a monitored sensor is read
View Source
event EventHandler<object> SampleAvailable
Event Type
System.EventHandler<System.Object>