Echelon LonBridg Server User Manual

Page 44

Advertising
background image

38

LonBridge Device Class File

Attribute

Description

Required?

output

For an input network variable, defines the

bytes to be put on the L

ON

W

ORKS

network

for this byte.

For an output network variable, defines the

LonBridge XML value used to set the

device.

Optional

value

Defines the value of the byte, if any.

Optional

Example:

<nvs>
<nv ... >
<byte ... >
<attribute name="state" enum="true">
<enum input="off" output="0" />
<enum input="on" output="1" />
</attribute>
</byte>
</nv>
</nvs>

<nv>

The <nv> element defines the bytes that are sent on the L

ON

W

ORKS

network

for a network variable update to the device.

Table 12 lists the attributes for the <nv> element.

Table 12. Attributes for the <nv> Element

Attribute

Description

Required?

direction

Defines whether the network variable is an

input NV or an output NV. This attribute

is device-centric.

Required

index

Correlates the network variable index on

the device with the network variable
defined in the class file.

Required

size

Defines the size of the network variable

update.
Example: To turn on a SNVT_switch
network variable, you send a two byte

message (one byte represents the

brightness and the other byte represents
the state). The size attribute for this NV is

2.

Optional

Advertising