beautypg.com

3 using the set function on a lonworks channel, 4 using the delete function on a lonworks channel, Using the set function on a l – Echelon i.LON SmartServer 2.0 User Manual

Page 216: Orks, Channel -16, Using the delete function on a l

background image

i.LON SmartServer 2.0 Programmer’s Reference

14-16

Property Description

Web service should be set to DDT_DYNAMIC. You cannot
use the Set function to modify this property

14.2.3

Using the Set Function on a L

ON

W

ORKS

Channel

You can use the Set function to overwrite the configuration of a channel, or to create a new channel.
The input parameters you supply to the function will include one or more elements. Each
element includes a property that specifies a unique channel to be created or
modified.

Each element may also include a series of properties that define the configuration of the new
(or modified) channel. This set of properties is the same whether you are creating a new channel or
modifying an existing channel.

• If you are creating a new channel, you only need to specify the property; all

other properties are optional.

• If you are modifying an existing channel, you must specify the channel’s . If you

do not specify the handle, a new channel is created. All other properties must be filled; otherwise
the values stored in them are erased. The previous section, Using the Get Function on a
L

ON

W

ORKS

Channel, details the properties you can include in the Set function.

You can set multiple channels with a single Set message. However, you should not attempt to create or
write to more than 100 channels with a single call to the Set function.

Request (create a new L

ON

W

ORKS

channel on the SmartServer)



xsi:type="LON_Channel_Cfg">

MyNewNetwork/myNewChannel
TP

LonFormat="UCPTtransceiverId">TP_FT_10



Response



0

MyNewNetwork/myNewChannel


14.2.4

Using the Delete Function on a L

ON

W

ORKS

Channel

You can use the Delete function to delete a L

ON

W

ORKS

channel on the SmartServer or a channel in an

LNS network database via the LNS Proxy Web service. The Delete function takes an element
with a LON_Channel_Cfg type as its input. The element only needs to include the channel’s
property in the Delete Request as demonstrated in the following code sample:

Request



xsi:type="LON_Channel_Cfg">

MyOldNetwork/MyOldChannel