Echelon LonBridg Server User Manual

Page 41

Advertising
background image

LonBridge Server User’s Guide

35

Attribute

Description

Required?

length

Defines the length of an input network

variable.
Example: For a network variable with a
length of 2, the <byte> element maps

attributes to bytes 0 and 1.

Optional

name

Defines the name for the attribute.

Required

scale

Defines a percentage by which to scale the

value.
Example: If the server reads a value of 200
from a device while polling brightness, and

it has a scale value of 50 for that byte, then

the LonBridge XML for messages will
display the brightness as 100 (50% of 200 is

100).

Optional

value

Defines an absolute value for the byte to be

updated for a network variable.
The value attribute is used only for input
network variables.

Optional

Example 1:

<attributes>
<attribute name="brightness">
<nvs>
<nv ... />
</nvs>
</attribute>
</attributes>

Example 2:

<nvs>
<nv ... >
<byte ...>
<attribute name="brightness" enum="true">
<enum ... />
</attribute>
</byte>
</nv>
</nvs>

<attributes>

The <attributes> element is a container element for the device attributes that

are present on the device. It also contains the network variables that are

used for input and output.

At least one <attribute> element, with one or more <nv> elements within the

<nvs> element, must be defined for a specific <attributes> element.

Advertising