beautypg.com

14 lonworks driver, 1 lonworks networks, 1 using the list function on a lonworks network – Echelon i.LON SmartServer 2.0 User Manual

Page 201: 2 using the get function on a lonworks network, Orks, Driver -1, Networks -1, Using the list function on a l, Network -1, Using the get function on a l

background image

i.LON SmartServer 2.0 Programmer’s Reference

14-1

14

L

ON

W

ORKS

Driver

The following chapter describes how to manage the networks, channels, devices, functional blocks,
and data points on the L

ON

W

ORKS

driver on the SmartServer. Note that the functions and properties

listed in this chapter are applicable for both the Web service on the SmartServer and the LNS Proxy
Web service.

14.1

L

ON

W

ORKS

Networks

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

ON

W

ORKS

networks.

14.1.1

Using the List Function on a L

ON

W

ORKS

Network

You can use the List function to retrieve the network connected to the SmartServer or a list of the LNS
network databases in a specific LNS Server computer through the LNS Proxy Web service. The List
function takes an element that has an xSelect statement with a LON_Network_Cfg or
Network_Cfg type as its input, as shown in the example below.

Request



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


Response



0
4.0

MyNetwork
iLonNS;xsi:type="LON_Network_Cfg"
0


The List function returns an element for the network connected to the SmartServer or a list of
elements for the LNS network databases in an LNS Server computer.

You could use the list of elements returned by this function as input for the Get function. The
Get function would then return the configuration of each network included in the list. The next section
describes the properties included in each of these elements.

14.1.2

Using the Get Function on a L

ON

W

ORKS

Network

You can use the Get function to retrieve the configuration of the network connected to the SmartServer
or the LNS network databases stored in an LNS Server computer. The input parameters you supply to
this function will include one or more elements with a LON_Network_Cfg type. Each
element will include the of each network whose configuration is to be returned by this
function, as shown in the example below.

Note: If you omit the xSelect statement, the generic Network_Cfg item is returned also.

Request



xsi:type="LON_Network_Cfg">

MyNetwork