beautypg.com

3 using the set function on a web connection, Using the set function on a web connection -23 – Echelon i.LON SmartServer 2.0 User Manual

Page 64

background image

i.LON SmartServer 2.0 Programmer’s Reference

4-23

Property Description

Acknowledged messaging service (ST_WEB_ACK). This
means that the sending device expects to receive
confirmation from the receiving device that a data point
update was delivered. The sending application is notified
when an update fails, but it is up to the developer of the
sending device to handle the notification in the device
application. If you create a Web connection with the Set
function, this property is optional.

. A reference to the Web service path

where SOAP calls are pushed in the following format:
//WebService[UCPTindex=x]. For example, if you create
an internal binding, x is set to 0, referring to the local
SmartServer. For the first host device you add to the LAN,
x is set to 1; for the second host device it is set to 2; and so
on.

. The priority level currently assigned to

the Web connection for writing updated values to the target
data point. This value may range from 0 to 255 (highest to
lowest priority). The default priority is 255. You can
assign the Web connection a higher priority for updating the
target data point. The priority you specify must be equal to
or higher than the priority used by the last application that
updated the data point.

. A flag indicating whether updates to

the source data point in a Web connection are to be
propagated over the L

ON

W

ORKS

network to the target data

point. If you assign the default value 1 to this property, the
change you make to the source data point will be
propagated to the L

ON

W

ORKS

network. If you assign value

0 to this property, the change will be made in the Data
Server, but it will not be propagated over the network.

4.4.3

Using the Set Function on a Web Connection

Use the Set function to overwrite the configuration of a Web connection, or to create a new Web
connection and add it to the Data Server. The input parameters you supply to the function will include
one or more elements with a Dp_Ref type. Each element specifies the
property of the source data point in the Web connection to be created and a property
referencing the target data point in the connection. The property must specify the
of the target data point and the of the WebBinder destination. The
property may specify the and properties, which by
default are set to 255 and 1, respectively.

You can modify or create multiple Web connections with a single Set message by specifying two or
more target data points in their respective properties. However, you should not attempt to
create or write to more than 100 Web connections with a single call to the Set function.

The following example demonstrates how to create two peer-to-peer bindings between two
SmartServers. When a Write function is performed on the source data point in the Web connection
(Net/LON/iLON App/Digital Input 1/nvoClsValue_1), the updated value is propagated to the target
data points (Net/LON/iLON App/Digital Output 1/nviClaValue_1 and Net/LON/iLON App/Digital
Output 2/nviClaValue_2) in the Web connection. The target data points are stored on the Data Server
of a remote SmartServer that has been added to the LAN.