Echelon OpenLNS User Manual

Page 72

Advertising
background image

OpenLNS Programmer's Reference

35

download

Options

An Integer value specifying the download

options.
These values can be ORed together; however,

you must set the

lcaConfigPropOptLoadValues (1) option

for the values to be downloaded into the

physical device.
The values for this element, which are stored

in the

ConstConfigPropOptions

constant, are

as follows:

0 lcaConfigPropOptLoadDefinitions
This option has no effect during a

download. If this is the only option set

when you call DownloadConfigProperties,

OpenLNS will use the

lcaConfigPropOptLoadValues (1) as

the download option.
1 lcaConfigPropOptLoadValues
Downloads all known values in the

AppDevice

object in the OpenLNS

database to the physical device on the

network. You must select this value if you

want the values to be downloaded into the

physical device, regardless of which other

flags you set. However, this is the default

option used if

lcaConfigPropOptLoadDefinitions (0)

is the only option specified in the call to

DownloadConfigProperties

, or if no flags

are specified.
2 lcaConfigPropOptSetDefaults
Sets the configuration property values in

the

AppDevice

object to the default

configuration property values stored in the

DeviceTemplate, and downloads any

changed values to the physical device on

the network (if the

lcaConfigPropOptLoadValues flag is

set).
Manufacturing-only configuration

properties are not affected by this option

unless it is ORed with

lcaConfigPropOptIncludeMfgOnly (8).
This option should not be ORed with

lcaConfigPropOptLoadUnknown (4).
Note that setting SCPTnvType

configuration properties to their default

values may cause the download operation

Advertising