Sensor Class

Definition

Interface for a sensor

public class Sensor
type Sensor = class
Public Class Sensor
Inheritance
Sensor
Derived

Constructors

Sensor(Brick, SensorPort, SensorType)

Creates a sensor

Properties

IsConnected

Gets true if the sensor is connected.

Port

Gets the Sensor port

SensorName

Gets the name of the sensor.

SensorType

Gets the sensor type

Methods

OnPropertyChanged(String)

Raises the on property changed event.

OnPropertyUpdated(String)

Raises the on property updated event.

Events

PropertyChanged

To notify a property has changed. It means the value has changed.

PropertyUpdated

To notify a property has been updated. It means the property has been updated regardeless of a change in its value.

Applies to