Skip to main content

Interface ISimulatedSensor

Represents a simulated sensor with customizable simulation behaviors.

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

Properties

SupportedBehaviors

Gets an array of supported simulation behaviors for the sensor.

View Source
Declaration
SimulationBehavior[] SupportedBehaviors { get; }

ValueType

Gets the type of the sensor's value.

View Source
Declaration
Type ValueType { get; }

Methods

SetSensorValue(object)

Sets the simulated value for the sensor.

View Source
Declaration
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
Declaration
void StartSimulation(SimulationBehavior behavior)
Parameters
TypeNameDescription
Meadow.Peripherals.Sensors.SimulationBehaviorbehaviorThe simulation behavior to start.