1 configuration data, Configuration data -16, Configuration data – Echelon i.LON SmartServer 2.0 User Manual

Page 30

Advertising
background image

i.LON SmartServer 2.0 Programmer’s Reference

2-16

2.10.1

Configuration Data

The following example demonstrates how to use a Get function to obtain the configuration of a data
point on the Data Server (Dp_Cfg) using the unique <UCPTname> of the data point.

Request Message

<?xml version='1.0' encoding='utf-8'?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Header>
<p:messageProperties

xmlns:p="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">

<p:UCPTtimeStamp>2008-04-08T11:37:32.156-07:00</p:UCPTtimeStamp>
<p:UCPTuniqueId>0300000A5BF2</p:UCPTuniqueId>
<p:UCPTipAddress>10.2.124.53</p:UCPTipAddress>
<p:UCPTport>80</p:UCPTport>
<p:UCPTlastUpdate>2008-04-08T18:22:52Z</p:UCPTlastUpdate>
<p:UCPTprocessingTime>20</p:UCPTprocessingTime>
</p:messageProperties></SOAP-ENV:Header>
<SOAP-ENV:Body>

<Get xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">

<iLonItem>

<Item

xsi:type="Dp_Cfg">

<UCPTname>Net/LON/iLON

App/VirtFb/nviSwitch_3</UCPTname>

</Item>

</iLonItem>

</Get>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Response Message

<?xml version="1.0" encoding="utf-8" ?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Header>
<p:messageProperties

xmlns:p="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">

<p:UCPTtimeStamp>2008-04-08T11:56:41.116-07:00</p:UCPTtimeStamp>
<p:UCPTuniqueId>0300000A5BF2</p:UCPTuniqueId>
<p:UCPTipAddress>10.2.124.53</p:UCPTipAddress>
<p:UCPTport>80</p:UCPTport>
<p:UCPTlastUpdate>2008-04-08T18:22:52Z</p:UCPTlastUpdate>
<p:UCPTprocessingTime>46</p:UCPTprocessingTime>
</p:messageProperties>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<GetResponse

xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">

<iLonItem >

<UCPTfaultCount>0</UCPTfaultCount>

<Item

xsi:type="Dp_Cfg"

>

<UCPTname>Net/LON/iLON

App/VirtFb/nviSwitch_3</UCPTname>

<UCPTannotation>Dp_In;xsi:type=&quot;LON_Dp_Cfg&quot;</UCPTannotation>
<UCPThidden>0</UCPThidden>
<UCPTlastUpdate>2008-03-26T16:16:43.070-07:00</UCPTlastUpdate>
<UCPTformatDescription>#0000000000000000[0].SNVT_switch</UCPTformatDescription>
<UCPTlength>2</UCPTlength>
<UCPTdirection

LonFormat="UCPTdirection"

>DIR_IN</UCPTdirection>

<UCPTunit

field=""

>value,

state</UCPTunit>

<UCPTunit field="value" >% of full level</UCPTunit>

<UCPTunit

field="state"

>state

code</UCPTunit>

<UCPTbaseType

LonFormat="UCPTbaseType"

>BT_STRUCT</UCPTbaseType>

<UCPTmaxFields>2</UCPTmaxFields>
<SCPTmaxSendTime>0.0</SCPTmaxSendTime>
<SCPTminSendTime>0.0</SCPTminSendTime>
<SCPTmaxRcvTime>0.0</SCPTmaxRcvTime>
<ValueDef>
<UCPTindex>0</UCPTindex>
<UCPTname>OFF</UCPTname>
<UCPTvalue

LonFormat="#0000000000000000[0].SNVT_switch"

>0.0

0</UCPTvalue>

Advertising