Echelon i.LON SmartServer Technical Information Page 171

  • Download
  • Add to my manuals
  • Print
  • Page
    / 443
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 170
i.LON SmartServer 2.0 Programmer’s Reference
11-5
The first invocation of the Set function will generate the
#8000010128000000[4].UFPTrealTimeClock.xml file in the
root/config/network/<network>/<channel>/iLONApp ||<device> directory of the SmartServer, if the
file does not already exist.
When modifying an existing real-time clock, any optional properties omitted from the input will be
erased. Old values will not be preserved, so you should fill in every property when writing to a
real-time clock, even if you are not changing all of the values.
When creating or modifying a real-time clock with this function, you may want to use output from the
Get function as the basis for your input. You would then only need to modify the values of each
property to match the new configuration you want, as opposed to re-creating an entire string like the
one shown below, to generate your input.
Request
<Set xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item xsi:type="UFPTrealTimeClock_Cfg">
<UCPTname>Net/LON/iLON App/Real Time Clock</UCPTname>
<UCPTdescription>enter an optional description</UCPTdescription>
<DataPoint dpType="Elevation" discrim="dir_out">
<UCPTname>Net/LON/iLON App/Real Time Clock/nvoElevation</UCPTname>
</DataPoint>
<DataPoint dpType="Azimuth" discrim="dir_out">
<UCPTname>Net/LON/iLON App/Real Time Clock/nvoAzimuth</UCPTname>
</DataPoint>
<DataPoint dpType="Sunrise" discrim="dir_out">
<UCPTname>Net/LON/iLON App/Real Time Clock/nvoSunrise</UCPTname>
</DataPoint>
<DataPoint dpType="Sunset" discrim="dir_out">
<UCPTname>Net/LON/iLON App/Real Time Clock/nvoSunset</UCPTname>
</DataPoint>
<UCPTdegLongitude>-121.913</UCPTdegLongitude>
<UCPTdegLatitude>37.3182</UCPTdegLatitude>
</Item>
</iLonItem>
</Set>
Response
<SetResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem >
<UCPTfaultCount>0</UCPTfaultCount>
<Item>
<UCPTname>Net/LON/iLON App/Real Time Clock</UCPTname>
</Item>
</iLonItem>
</SetResponse>
11.3.4
Using the Delete Function on a Real-Time Clock
You can use the Delete function to delete a Real-Time Clock. To delete a Real-Time Clock, you
provide an <Item> element with a UFPTrealTimeClock_Cfg type that includes the <UCPTname>
property of the real-Time clock to be deleted. The following code sample demonstrates how to use the
Delete function to delete a Real-Time Clock:
Request
<Delete xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<Item xsi:type="UFPTrealTimeClock_Cfg">
<UCPTname>Net/LON/iLON App/Real Time Clock</UCPTname>
</Item>
</iLonItem>
</Delete>
Page view 170
1 2 ... 166 167 168 169 170 171 172 173 174 175 176 ... 442 443

Comments to this Manuals

No comments