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
Type | Name | Description |
---|---|---|
Meadow.Peripherals.Sensors.ISamplingSensor | sensor | Sensor to start sampling |
StopSampling(ISamplingSensor)
Stops sensor sampling.
View Source
Declaration
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
Declaration
event EventHandler<object> SampleAvailable
Event Type
System.EventHandler<System.Object>