beautypg.com

4 using the delete function on a lonworks network, 2 lonworks channels, 1 using the list function on a lonworks channel – Echelon i.LON SmartServer 2.0 User Manual

Page 211: Using the delete function on a l, Orks, Network -11, Channels -11, Using the list function on a l, Channel -11, Channels

background image

i.LON SmartServer 2.0 Programmer’s Reference

14-11

Read response and store it in the property of the subsequent Read request to avoid
missing entries or receiving duplicate entries. This is the approach used by the SmartServer Web
interface.

 

Alternatively, you can wait until the network scan has been completed to read the uncommissioned
devices in the data log all at once. This approach requires you to wait for the scan to be completed, but
is much simpler to program. The C#, VB, and JAVA programming example for discovering and
installing uncommissioned devices in Chapters 21 and 22 use this approach.

14.1.4

Using the Delete Function on a L

ON

W

ORKS

Network

You can use the Delete function to delete a L

ON

W

ORKS

network in an LNS network database via the

LNS Proxy Web service. You cannot delete a network via the SmartServer Web service as the current
network is registered to the LON driver. To delete a L

ON

W

ORKS

network in an LNS network

database, you provide the database’s property in the Delete Request as demonstrated in
the following code sample:

Request



MyOldNetwork


Response



0


MyOldNetwork


14.2

L

ON

W

ORKS

Channels

The following section describes how to use the List, Get, Set, and Delete functions on L

ON

W

ORKS

channels.

14.2.1

Using the List Function on a L

ON

W

ORKS

Channel

You can use the List function to retrieve a list of L

ON

W

ORKS

channels on the SmartServer or to

retrieve a list of L

ON

W

ORKS

channels in a specific LNS network database via the LNS Proxy Web

service. The List function takes an element that has an xSelect statement with a
LON_Channel_Cfg type as its input, as shown in the example below.

Request



//Item[@xsi:type="LON_Channel_Cfg"]


Response



0
4.0

Net/LON
TP;xsi:type="LON_Channel_Cfg"
0