1.1.2.1.14 OcaJsonSensor

Class Hierarchy:

OcaRoot : OcaWorker : OcaSensor : OcaBasicSensor : OcaJsonSensor

class OcaJsonSensor : OcaBasicSensor

JSON value actuator, with or without schema.

Properties:

static const OcaClassID ClassID = "1.1.2.1.14"

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.

OcaUint16 MaxLen

Maximum length of the returned value. May be readonly in some implementations.

This property has id 5.2.

OcaJsonValue Value

The JSON value.

This property has id 5.1.

Properties inherited from 1.1.2.1 OcaBasicSensor:

Methods:

OcaStatus GetValue(OcaJsonValue &Value)

Gets the value of the Value property.

This method has id 5.1.

  • Value: Output parameter.

OcaStatus GetMaxLen(OcaUint16 &Len)

Gets the maximum number of bytes that may be returned.

This method has id 5.2.

  • Len: Output parameter.

OcaStatus SetMaxLen(OcaUint16 Len)

Sets the maximum number of bytes that the object may return. Optional method.

This method has id 5.3.

  • Len: Input parameter.

Methods inherited from 1.1.2.1 OcaBasicSensor: