1.1.2.1.13 OcaBitstringSensor

Class Hierarchy:

OcaRoot : OcaWorker : OcaSensor : OcaBasicSensor : OcaBitstringSensor

class OcaBitstringSensor : OcaBasicSensor

Bit string sensor.

Properties:

OcaBitstring Reading

The bitstring. New name as of v3 of this class.

This property has id 5.1.

static const OcaClassID ClassID = "1.1.2.1.13"

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

Properties inherited from 1.1.2.1 OcaBasicSensor:

Methods:

OcaStatus GetNrBits(OcaUint16 &NrBits)

Gets the number of bits of the bitstring data.

This method has id 5.1.

OcaStatus GetBit(OcaUint16 bitNr, OcaUint8 &bit)

Gets the value of the given bit.

This method has id 5.2.

  • bitNr: Input parameter.

  • bit: Output parameter.

OcaStatus GetReading(OcaBitstring &Reading)

Gets the entire bitstring.

This method has id 5.3.

Methods inherited from 1.1.2.1 OcaBasicSensor: