Interface ISimpleSensorDevice
Namespace: Belay.Core.Examples
Assembly: Belay.Core.dll
Example interface demonstrating method interception with the [Task] and [PythonCode] attributes. This interface shows how to embed Python code directly in method declarations.
public interface ISimpleSensorDevice
Methods
Cleans up the device. Demonstrates [Teardown] attribute with [PythonCode].
Gets device information without parameter substitution. Demonstrates disabling parameter substitution.
Gets a simple greeting from the device. Demonstrates basic [Task] and [PythonCode] attribute usage.
Initializes the device sensors. Demonstrates [Setup] attribute with [PythonCode].
Reads a simulated temperature value. Demonstrates [PythonCode] with more complex Python code.
Controls an LED with specified pin and state. Demonstrates parameter substitution in Python code.