Echelon i.LON SmartServer Technical Information Page 217

  • Download
  • Add to my manuals
  • Print
  • Page
    / 443
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 216
i.LON SmartServer 2.0 Programmer’s Reference
14-17
</Delete>
Response
<DeleteResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem >
<UCPTfaultCount>0</UCPTfaultCount>
<Item>
<UCPTname>MyOldNetwork/MyOldChannel</UCPTname>
</Item>
</iLonItem>
14.3
LONWORKS Devices
The following section describes how to use the List, Get, Set, and Delete functions on LONWORKS
devices.
Note:
Section 21.1.4, Creating and Installing a LonWorks Device in Visual Basic.NET, includes a C#
programming example demonstrating how to use the L
ONWORKS Device SOAP interface to create and
install L
ONWORKS devices. Section 21.2.4, Creating and Installing a LonWorks Device in Visual
Basic.NET, includes a Visual Basic example demonstrating how to do this.
Section 22.3.3,
Creating and Installing a LonWorks Device in Java, includes a Java programming
example demonstrating how to create and install external L
ONWORKS devices.
14.3.1
Using the List Function on a LONWORKS Device
You can use the List function to retrieve a list of LONWORKS devices on the SmartServer or to retrieve
a list of L
ONWORKS devices in a specific LNS network database via the LNS Proxy Web service. The
List function takes an <iLonItem> element that has an xSelect statement with a LON_Device_Cfg type
as its input, as shown in the example below.
Request
<List xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<xSelect>//Item[@xsi:type="LON_Device_Cfg"]</xSelect>
</iLonItem>
</List>
Alternatively, you can specify one or more device properties in the xSelect statement to filter the items
returned by the List function, including the <UCPTname>, <UCPTitemStatus>, and
<UCPTlastUpdate> properties.
Request (return all devices on a specific L
ONWORKS channel)
<List xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<xSelect> //Item[@xsi:type="LON_Device_Cfg"][starts-with(UCPTname,"MyNetwork/Channel 1")]
</xSelect>
</iLonItem>
</List>
Request (return all devices that are uncommissioned)
<List xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<xSelect> //Item[@xsi:type="LON_Device_Cfg"] [UCPTitemStatus="IS_UNCONFIGURED"]
</xSelect>
</iLonItem>
</List>
Request (return all devices that were updated after a specific time)
<List xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<xSelect> //Item[@xsi:type="LON_Device_Cfg"] [UCPTlastUpdate&gt; "2008-03-26T16:25:00"]
</xSelect>
</iLonItem>
</List>
Page view 216
1 2 ... 212 213 214 215 216 217 218 219 220 221 222 ... 442 443

Comments to this Manuals

No comments