beautypg.com

4 using the delete function on a real time clock, Using the delete function on a real-time clock -5, Using the delete function on a real-time clock – Echelon i.LON SmartServer 2.0 User Manual

Page 171

background image

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///iLONApp || 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



Net/LON/iLON App/Real Time Clock

enter an optional description

dpType="Elevation"

discrim="dir_out">

Net/LON/iLON App/Real Time Clock/nvoElevation

Net/LON/iLON App/Real Time Clock/nvoAzimuth

Net/LON/iLON App/Real Time Clock/nvoSunrise

Net/LON/iLON App/Real Time Clock/nvoSunset

-121.913

37.3182



Response



0


Net/LON/iLON App/Real Time Clock



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 element with a UFPTrealTimeClock_Cfg type that includes the
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



Net/LON/iLON App/Real Time Clock