Examples – Echelon LonBridg Server User Manual
Page 36

30
LonBridge API
</xs:complexType>
</xs:element>
<xs:element name="is_new">
<xs:complexType>
<xs:anyAttribute />
</xs:complexType>
</xs:element>
<xs:element name="is_pending">
<xs:complexType>
<xs:anyAttribute />
</xs:complexType>
</xs:element>
<xs:element name="lon">
<xs:complexType>
<xs:choice>
<xs:element ref="discover" />
<xs:element ref="error" />
<xs:element ref="get" />
<xs:element ref="is" />
<xs:element ref="is_new" />
<xs:element ref="is_pending" />
<xs:element ref="set" />
<xs:any minOccurs="0" />
</xs:choice>
<xs:anyAttribute/>
</xs:complexType>
</xs:element>
<xs:element name="set">
<xs:complexType>
<xs:attribute name="id" type="xs:NMTOKEN" use="optional" />
<xs:attribute name="state" type="xs:NMTOKEN" use="optional" />
<xs:anyAttribute />
</xs:complexType>
</xs:element>
</xs:schema>
Examples
Example for the <get> Message:
Query object 57:
<lon>
<o57.get/>
</lon>
...
<lon>
<lon1.o57.is type="light" name="Outdoor Lights"
state="on" brightness="100" address="488484393"/>
</lon>
Select attributes:
<lon>
<get select="name,state,brightness" where="type=='light'
and
name=='/S.*/'"/>