Attributes Element

<attributes>

The <attributes> element is a container element for the device attributes that are present on the device. It also contains the datapoints that are used for input and output. The <attributes> element is required and must be defined within the <device> container element. Only one <attributes> element can be defined per class file.

At least one <attribute> element, with one or more <nv> elements within the <nvs> element, must be defined for an <attributes> element.

Example

<device pid="9FFFFF05006F0002" name="LED" type="color_lamp_controller" brand="Echelon">
  <attributes>
    <attribute ... >
      <nvs>
        <nv ... />
      </nvs>
    </attribute>
  </attributes>
  <nvs>
    <nv ... >
      <byte ... >
        <attribute ... />
      </byte>
    </nv>
  </nvs>
</device>

XML Schema Definition

  <xs:element name="attributes">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="attribute" maxOccurs="unbounded" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>