1.1.2 OcaSensor

Class Hierarchy:

OcaRoot : OcaWorker : OcaSensor

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 1.1.

static const OcaClassVersionNumber ClassVersion = 3

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 1.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 1.1 OcaWorker:

Methods:

OcaStatus GetReadingState(OcaSensorReadingState &state)

Gets the current reading state of the sensor.

This method has id 3.1.

  • state: Output parameter.

Methods inherited from 1.1 OcaWorker: