Complete device class file – Echelon LonBridg Server User Manual

Page 65

Advertising
background image

LonBridge Server User’s Guide

59

<byte index="0">
<attribute name="state" enum="true">
...
</attribute>
</byte>
</nv>
<nv index="5" direction="output" size="2">
<byte index="0">
<attribute name="power" length="2" />
</byte>
</nv>
</nvs>

The next step is to ensure that the device class file is complete, and is not missing

any important information.

Complete Device Class File

After completing the steps described in the previous sections, the simplified
Lamp Module should have the following device class file:

<device pid="9FFFFF1E284A1101" name="Simple Lamp Module"
type="simple" brand="Test">
<attributes>
<attribute name="state">
<nvs>
<nv index="0" direction="input" />
<nv index="2" direction="output" />
</nvs>
</attribute>
<attribute name="power">
<nvs>
<nv index="5" direction="output" />
</nvs>
</attribute>
</attributes>
<nvs>
<nv index="0" direction="input" size="3">
<byte index="0" length="1">
<attribute name="state" enum="true">
<enum input="off" output="0" />
<enum input="on" output="1" />
</attribute>
</byte>
<byte index="1" length="1">
<attribute name="state" enum="true">
<enum input="off" output="0" />
<enum input="on" output="200" />
</attribute>
</byte>
</nv>
<nv index="2" direction="output">
<byte index="0">
<attribute name="state" enum="true" scale="100">
<enum input="2" output="off" />
<enum input="3" output="on" />
</attribute>

Advertising