Echelon LonBridg Server User Manual
Page 61

LonBridge Server User’s Guide
55
Figure 9. The switch_state_t Enumeration
For the nviValue network variable, a LonBridge application uses the
SW_SET_OFF and SW_SET_ON values, which are enumeration values 0 and 1.
For the nvoValueFb network variable, a LonBridge application receives the
SW_REPORT_OFF and SW_REPORT_ON values, which are enumeration values
2 and 3.
Thus, the enumerations of the <nv> elements for the
state
attribute within the
device class file includes the following information:
<nv index="?" 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>