OcaBooleanSensor

A online version of the AES70 specification of this class can be found at http://docs.deuso.de.

The class is a subclass of OcaBasicSensor().

This class defines the properties

Name

JavaScript Type

AES70 Type

Reading

boolean

OcaBoolean

Furthermore, it inherits the properties ClassID, ClassVersion, ObjectNumber, Lockable, Role, Enabled, Ports, Label, Owner, Latency, ReadingState and Reading.

class OcaBooleanSensor(objectNumber, device)

Basic boolean sensor.

OcaBooleanSensor.OnReadingChanged

type: PropertyEvent.<boolean>

This event is emitted when the property Reading changes in the remote object. The property Reading is described in the AES70 standard as follows. Boolean reading.

OcaBooleanSensor.GetReading()

Gets the Reading property. The return value indicates whether the data was successfully retrieved.

Returns

Promise.<boolean> – A promise which resolves to a single value of type boolean.