Skip to main content

Class SimulatedY4000

Represents a simulated Yosemitech Y4000 Multiparameter Sonde

Assembly: Y4000.dll
View Source
Declaration
public class SimulatedY4000 : IY4000, IWaterQualityConcentrationsSensor, ISamplingSensor<WaterQualityConcentrations>, ISensor<WaterQualityConcentrations>, IElectricalConductivitySensor, ISamplingSensor<Conductivity>, ISensor<Conductivity>, IPotentialHydrogenSensor, ISamplingSensor<PotentialHydrogen>, ISensor<PotentialHydrogen>, ITurbiditySensor, ISamplingSensor<Turbidity>, ISensor<Turbidity>, ITemperatureSensor, ISamplingSensor<Temperature>, ISensor<Temperature>, IRedoxPotentialSensor, ISamplingSensor<Voltage>, ISensor<Voltage>, ISensor, ISamplingSensor

Implements:

Expand

Meadow.Foundation.Sensors.Environmental.IY4000, Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Voltage>, Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Voltage>, Meadow.Peripherals.Sensors.ISensor, Meadow.Peripherals.Sensors.ISamplingSensor

Properties

UpdateInterval

A TimeSpan that specifies how long to wait between readings

View Source
Declaration
public TimeSpan UpdateInterval { get; }

IsSampling

Gets a value indicating whether the sensor is currently sampling

View Source
Declaration
public bool IsSampling { get; }

Methods

GetSerialNumber()

Get the Y4000 serial number

View Source
Declaration
public Task<string> GetSerialNumber()
Returns

System.Threading.Tasks.Task<System.String>

StartUpdating(TimeSpan?)

Starts updating the sensor on the updateInterval frequency specified

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

StopUpdating()

Stops sampling the sensor

View Source
Declaration
public void StopUpdating()

ReadSensor()

Reads all measurements of the sensor

View Source
Declaration
public Task<Y4000.Measurements> ReadSensor()
Returns

System.Threading.Tasks.Task<Meadow.Foundation.Sensors.Environmental.Y4000.Measurements>

Implements

  • Meadow.Foundation.Sensors.Environmental.IY4000
  • Meadow.Foundation.Sensors.Environmental.IWaterQualityConcentrationsSensor
  • Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Foundation.Sensors.Environmental.WaterQualityConcentrations>
  • Meadow.Peripherals.Sensors.ISensor<Meadow.Foundation.Sensors.Environmental.WaterQualityConcentrations>
  • Meadow.Peripherals.Sensors.IElectricalConductivitySensor
  • Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Conductivity>
  • Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Conductivity>
  • Meadow.Peripherals.Sensors.Environmental.IPotentialHydrogenSensor
  • Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.PotentialHydrogen>
  • Meadow.Peripherals.Sensors.ISensor<Meadow.Units.PotentialHydrogen>
  • Meadow.Peripherals.Sensors.Environmental.ITurbiditySensor
  • Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Turbidity>
  • Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Turbidity>
  • Meadow.Peripherals.Sensors.ITemperatureSensor
  • Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Temperature>
  • Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Temperature>
  • Meadow.Foundation.Sensors.Environmental.IRedoxPotentialSensor
  • Meadow.Peripherals.Sensors.ISamplingSensor<Meadow.Units.Voltage>
  • Meadow.Peripherals.Sensors.ISensor<Meadow.Units.Voltage>
  • Meadow.Peripherals.Sensors.ISensor
  • Meadow.Peripherals.Sensors.ISamplingSensor