Echelon OpenLNS User Manual

Page 98

Advertising
background image

OpenLNS Programmer's Reference

61

UploadConfigProperties method can be invoked using either

the AppDevice object or the Interface object.
You cannot call the UploadConfigProperties method on a

device until you commission it with the Commission method.

Availability

Local, full, and lightweight clients.

Syntax

object.UploadConfigProperties options

Element

Description

object

The

AppDevice

object in the OpenLNS

database to which configuration properties are

to be uploaded.

options

An Integer value specifying the desired upload

options. The values for this element, which are

stored in the

ConstConfigPropOptions

constant, are as follows:

0 lcaConfigPropOptLoadDefinitions
Reads the template file and loads the

configuration property definitions for the

device into the OpenLNS database if the

configuration property template file on the

device has not been imported or uploaded into

the OpenLNS database.
1 lcaConfigPropOptLoadValues
Uploads all configuration property values from

the physical device on the network to the

associated AppDevice

object

in the OpenLNS

database. When combined with

lcaConfigPropOptExcludeDeviceSpecific

(64), configuration properties with the

device-specific attribute set will be excluded

from the upload.
2 lcaConfigPropOptSetDefaults
Sets the values stored for the device in the

OpenLNS database as the default

configuration property values in the AppDevice

object's DeviceTemplate. This operation will

change the default values that could be applied

to any device using the DeviceTemplate. Note

that this option will upload values from the

physical device, regardless of whether or not it

is ORed with lcaConfigPropOptLoadValues

(1). In either case, OpenLNS will upload all

the configuration property values from the

device into the OpenLNS database, and then

set all the values in the database as the

defaults.
You can OR this option with

lcaConfigPropOptLoadUnknown (4). In

Advertising