Valuestatus – Echelon OpenLNS User Manual

Page 210

Advertising
background image

OpenLNS Programmer's Reference

173

ValueStatus

Summary

Determines the current state of the value stored in the

OpenLNS database for the

ConfigProperty

object.

In some cases, the stored value for a configuration property

in the OpenLNS database may not match the actual value of

the configuration property in the physical device on the

network. You can use this property to determine the current

state of the value stored in the OpenLNS database for the

configuration property.

Availability

Local, full, lightweight, and independent clients.

Syntax

returnValue = cpObject.ValueStatus

Element

Description

returnValue

The current status of the Value and

RawValue properties.
The values for this property, which are

stored in the

ConstConfigPropertyValueMgmtStatus

constant, are as follows:
0

lcaConfigPropertyValueMgmtStatu

sUnknown
The configuration property value is not

currently stored in the OpenLNS

database. To resolve this, follow these

steps:

1. Call the GetDataPoint method to

create a DataPoint for the

configuration property.
Use the

lcaDataSourceOptionsFromDevice (1)

value as the options element when

you create the data point. This

enables you to read the value of the

configuration property from the

device when the data point is

created.

2. Set the SourceOptions property of

the newly created DataPoint to

lcaDataSourceOptionsDatabase

Only (2).

3. Call the Write method to set the

value from the device in the

OpenLNS database.
Alternatively, you can load all

unknown configuration property

values for the device into the

Advertising