Skip to main content

Interface ISimulatedSensor

Represents a simulated sensor with customizable simulation behaviors.

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

Properties

SupportedBehaviors

Gets an array of supported simulation behaviors for the sensor.

View Source
SimulationBehavior[] SupportedBehaviors { get; }

ValueType

Gets the type of the sensor's value.

View Source
Type ValueType { get; }

Methods

SetSensorValue(object)

Sets the simulated value for the sensor.

View Source
void SetSensorValue(object value)
Parameters
TypeNameDescription
System.ObjectvalueThe value to set for the sensor.

StartSimulation(SimulationBehavior)

Starts the simulation with the specified behavior.

View Source
void StartSimulation(SimulationBehavior behavior)
Parameters
TypeNameDescription
Meadow.Peripherals.Sensors.SimulationBehaviorbehaviorThe simulation behavior to start.