Response schema - Wx Beacon - BWS500

Wx Beacon API Reference

Document code
M212639EN
Revision
C
Language
English (United States)
Product
Wx Beacon
BWS500
Document type
User guide

The XML API returns an XML message that is based on the following schema.

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
 <xs:element name="envitemsdata">
  <xs:complexType>
   <xs:sequence>
    <xs:element name="device">
     <xs:complexType>
      <xs:choice maxOccurs="unbounded" minOccurs="0">
       <xs:element type="xs:string" name="name"/>
       <xs:element type="xs:string" name="serial"/>
       <xs:element type="xs:byte" name="type"/>
       <xs:element type="xs:string" name="description"/>
       <xs:element type="xs:string" name="location"/>
       <xs:element type="xs:string" name="lat"/>
       <xs:element type="xs:string" name="lon"/>
       <xs:element type="xs:string" name="alt"/>
      </xs:choice>
     </xs:complexType>
    </xs:element>
    <xs:element name="measurements">
     <xs:complexType>
      <xs:sequence>
       <xs:element name="meas" maxOccurs="unbounded" minOccurs="0">
        <xs:complexType>
         <xs:sequence>
          <xs:element type="xs:string" name="timestamp"/>
          <xs:element type="xs:string" name="type"/>
          <xs:element type="xs:float" name="value"/>
         </xs:sequence>
         <xs:attribute type="xs:byte" name="id" use="optional"/>
        </xs:complexType>
       </xs:element>
      </xs:sequence>
     </xs:complexType>
    </xs:element>
   </xs:sequence>
  </xs:complexType>
 </xs:element>
</xs:schema>