Lonbridge device class file format, Xml elements for a device class file, 34, for information abou – Echelon LonBridg Server User Manual

Page 40: 34, for in

Advertising
background image

34

LonBridge Device Class File

LonBridge Device Class File Format

A LonBridge device class file is an XML document that the LonBridge Server

uses to define the interface for a device interface for a specified program ID.
When a device is discovered, the LonBridge Server searches the Classes directory

for a device class file with a matching program ID (see

Classes Directory

on page

13).

Table 7 lists the XML elements that a device class file includes.

Table 7. XML Elements for a Device Class File

Element

Description

<attribute>

Defines the attributes for a device

<attributes>

Is a container element for the device attributes that are present

on the device

<byte>

Defines the fields within a network variable

<device>

Defines the device class, and is the top-most element within a
class file

<enum>

Enumerates each network variable defined for an <attribute>
element

<nv>

Defines the bytes that are sent on the L

ON

W

ORKS

network for a

network variable update to the device

<nvs>

Is a container element for the network variables defined for each
<attribute> element

XML Elements for a Device Class File

<attribute>

The <attribute> element defines the attributes for a device.

For an <attribute> element within a <byte> element, the attribute name

must map an <attribute> element that is defined within the <attributes>
element.
Table 8 lists the attributes for the <attribute> element.

Table 8. Attributes for the <attribute> Element

Attribute

Description

Required?

enum

Defines whether the attribute has an

enumeration of values within an enclosed
set of <enum> elements.

Optional

Advertising