Skip to main content

Class SimulatedKellerTransducer

Simulated implementation of the IKellerTransducer interface. This class provides mock functionality for testing or development purposes without hardware.

Assembly: Keller.XLine.dll
View Source
Declaration
public class SimulatedKellerTransducer : IKellerTransducer

Implements:
Meadow.Foundation.Sensors.Environmental.IKellerTransducer

Methods

ReadModbusAddress()

Reads the Modbus address of the transducer.

View Source
Declaration
public Task<byte> ReadModbusAddress()
Returns

System.Threading.Tasks.Task<System.Byte>: A task that represents the asynchronous operation. The task result contains the Modbus address as a byte.### ReadPressure(PressureChannel) Reads the pressure from the specified channel.

View Source
Declaration
public Task<Pressure> ReadPressure(PressureChannel channel)
Returns

System.Threading.Tasks.Task<Meadow.Units.Pressure>: A task that represents the asynchronous operation. The task result contains the pressure as a Meadow.Units.Pressure object.

Parameters
TypeNameDescription
Meadow.Foundation.Sensors.Environmental.PressureChannelchannelThe pressure channel to read from.

ReadSerialNumber()

Reads the serial number of the transducer.

View Source
Declaration
public Task<int> ReadSerialNumber()
Returns

System.Threading.Tasks.Task<System.Int32>: A task that represents the asynchronous operation. The task result contains the serial number as an integer.### ReadTemperature(TemperatureChannel) Reads the temperature from the specified channel.

View Source
Declaration
public Task<Temperature> ReadTemperature(TemperatureChannel channel)
Returns

System.Threading.Tasks.Task<Meadow.Units.Temperature>: A task that represents the asynchronous operation. The task result contains the temperature as a Meadow.Units.Temperature object.

Parameters
TypeNameDescription
Meadow.Foundation.Sensors.Environmental.TemperatureChannelchannelThe temperature channel to read from.

Implements