1.1.2 OcaSensor

Class Hierarchy:

OcaRootOcaWorkerOcaSensor

class OcaSensor : OcaWorker

Abstract base class for all sensor classes.

Properties:

static const OcaClassID ClassID = "1.1.2"

Number that uniquely identifies the class. Note that this differs from the object number, which identifies the instantiated object. This is a class property instead of an object property. This property is an override of the OcaRoot property.

This property has id 3.1.

static const OcaClassVersionNumber ClassVersion = 2

Identifies the interface version of the class. Any change to the class definition leads to a higher class version. This property is an override of the OcaRoot property.

This property has id 3.2.

OcaSensorReadingState ReadingState

Enum that describes whether current reading value is valid and if not, why not. Readonly.

This property has id 3.1.

Properties inherited from OcaWorker:

Properties inherited from OcaRoot:

Methods:

OcaStatus GetReadingState(OcaSensorReadingState &state)

Gets the current reading state of the sensor. The return value indicates whether the state was successfully retrived.

This method has id 3.1.

Parameters

OcaSensorReadingState state – Output parameter.

Methods inherited from OcaWorker:

Methods inherited from OcaRoot: