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
Type | Name | Description |
---|---|---|
System.Object | value | The value to set for the sensor. |
StartSimulation(SimulationBehavior)
Starts the simulation with the specified behavior.
View Source
void StartSimulation(SimulationBehavior behavior)
Parameters
Type | Name | Description |
---|---|---|
Meadow.Peripherals.Sensors.SimulationBehavior | behavior | The simulation behavior to start. |