1.1.2.11 OcaPowerSensor

Class Hierarchy:

OcaRoot : OcaWorker : OcaSensor : OcaPowerSensor

class OcaPowerSensor : OcaSensor

Power sensor. Reading shall be a watts value and a power factor value.

Properties:

static const OcaClassID ClassID = "1.1.2.11"

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

This property has id 1.1.

static const OcaClassVersionNumber ClassVersion = 1

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.

OcaFloat32 Power

Power in watts.

This property has id 4.1.

OcaFloat32 PowerFactor

Power factor. Value shall range from 1 to zero, with 1 applying to a purely resistive circuit.

This property has id 4.2.

Properties inherited from 1.1.2 OcaSensor:

Methods:

OcaStatus GetReading(OcaFloat32 &Power, OcaFloat32 &PowerFactor, OcaFloat32 &minPower, OcaFloat32 &maxPower)

Gets the value and limits of the Power property, and the value of the PowerFactor propert**y**.

This method has id 4.1.

Methods inherited from 1.1.2 OcaSensor: