/
Simple Example Device Class File
Simple Example Device Class File
Following is an example device class file for a simple lamp module. The server datapoints are defined by the <attribute> elements within the <attributes> element. The device application datapoints are defined by the <nv> elements within the <nvs> element.
<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" type="switch_2"> <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" size="3" type="switch_2"> <byte index="0"> <attribute name="state" enum="true" scale="100"> <enum input="2" output="off" /> <enum input="3" output="on" /> </attribute> </byte> </nv> <nv index="5" direction="output" size="2" type="power"> <byte index="0"> <attribute name="power" scale="10" length="2" /> </byte> </nv> </nvs> </device>
, multiple selections available,
Related content
Multi DIO Example Device Class File
Multi DIO Example Device Class File
More like this
Attributes Element
Attributes Element
More like this
Device Class File Schema Definition
Device Class File Schema Definition
More like this
NVs Element
NVs Element
More like this
Device Element
Device Element
More like this
Creating an Izot Device Class File
Creating an Izot Device Class File
More like this