Skip to main content

Interface ISamplingSensor

Abstraction for a sampling/observable sensor

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

Properties

UpdateInterval

A TimeSpan that specifies how long to wait between readings

View Source
TimeSpan UpdateInterval { get; }

IsSampling

Gets a value indicating whether the sensor is currently sampling

View Source
bool IsSampling { get; }

Methods

StartUpdating(TimeSpan?)

Starts updating the sensor on the updateInterval frequency specified

View Source
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
void StopUpdating()