beautypg.com

4 using the read function on a calendar, Using the read function on a calendar -13, Using the read function on a calendar – Echelon i.LON SmartServer 2.0 User Manual

Page 163

background image

i.LON SmartServer 2.0 Programmer’s Reference

10-13

Net/LON/iLON

App/Calendar

enter an optional description

xsi:type="UFPTscheduler_CfgEffectivePeriod">

2000-01-01

2037-12-31

3

RecurringWeekendException

Recurring

Weekend

Exception

0


xsi:type="UFPTcalendar_CfgESDate">

2008-03-06

xsi:type="string"

LonFormat="UCPTyearMask">DW_NUL

xsi:type="string"

LonFormat="UCPTmonthMask">DW_NUL

xsi:type="string"

LonFormat="UCPTdayMask">DW_NUL

xsi:type="UFPTcalendar_CfgESDate">

2037-12-31

xsi:type="string"

LonFormat="UCPTyearMask">DW_WILDCARD

xsi:type="string"

LonFormat="UCPTmonthMask">DW_WILDCARD

xsi:type="string"

LonFormat="UCPTdayMask">DW_WILDCARD


xsi:type="string"

LonFormat="UCPTschedDay">DM_EVERY_WEEKEND_DAY

xsi:type="string"

LonFormat="UCPTschedMonth">MN_NUL


Response


0


Net/LON/iLON

App/Calendar__TEMP_OBJECT



10.3.4

Using the Read Function on a Calendar

You can use the Read function to retrieve the events scheduled in the exceptions on a Calendar on the
SmartServer. Optionally, you can filter events using an xSelect statement and specifying one or more
Calendar items. If you do not filter the results with an xSelect statement, the Read function returns the
first 50 events in the selected calendar starting from January 1

st

, 2000.

You can use the following filters in an xSelect statement when using the Read function on a Calendar:

UCPTlastUpdate

When an event occurs. You can compare the specified start and stop
times using equal, less (or equal), great (or equal). UCPTstop is set
to time of last shown event. You need to check whether UCPTstop
differs from UCPTlastUpdate to make the next request start from the
UCPTstop time.

UCPTexeptionName

The name of the exception in which the events are scheduled.