Skip to main content

Interface ISamplingSensor

Abstraction for a sampling/observable sensor

Assembly: Meadow.Contracts.dll​
View Source​
Declaration
public interface ISamplingSensor

Properties​

UpdateInterval​

A TimeSpan that specifies how long to wait between readings

View Source​
Declaration
TimeSpan UpdateInterval { get; }

IsSampling​

Gets a value indicating whether the sensor is currently sampling

View Source​
Declaration
bool IsSampling { get; }

Methods​

StartUpdating(TimeSpan?)​

Starts updating the sensor on the updateInterval frequency specified

View Source​
Declaration
void StartUpdating(TimeSpan? updateInterval = null)
Parameters​
TypeNameDescription
System.Nullable<System.TimeSpan>updateIntervalA TimeSpan that specifies how long to
wait between readings

StopUpdating()​

Stops sampling the sensor

View Source​
Declaration
void StopUpdating()