5 using the delete function on a calendar, Using the delete function on a calendar -15 – Echelon i.LON SmartServer 2.0 User Manual

Page 165

Advertising
background image

i.LON SmartServer 2.0 Programmer’s Reference

10-15

events within the timeframe from <UCPTstart> to
<UCPTstop>.

The first <DateEvent> element specifies the number of days
from <UCPTstart> to the first event in the specified
timeframe. The first signed long in the structure indicates
the number of days until the event is valid, and the second
one indicates the days until the event is invalid.

The second <DateEvent> element specifies the number of
days from <UCPTstart> to the last event in the specified
timeframe.

10.3.5

Using the Delete Function on a Calendar

You can use the Delete function to delete a Calendar. To delete a Calendar, you provide an <Item>
element with a UFPTcalendar_Cfg type that includes the <UCPTname> property of the calendar to be
deleted. The following code sample demonstrates how to use the Delete function to delete a Calendar:

Request

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

xsi:type="UFPTcalendar_Cfg">

<UCPTname>Net/LON/iLON

App/Calendar1</UCPTname>

</Item>

</iLonItem>
</Delete>

Response

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

<UCPTfaultCount>0</UCPTfaultCount>

<Item>
<UCPTname>Net/LON/iLON

App/Calendar1</UCPTname>

</Item>
</iLonItem>
</DeleteResponse>

Advertising