Echelon i.LON SmartServer Technical Information Page 143

  • Download
  • Add to my manuals
  • Print
  • Page
    / 443
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 142
i.LON SmartServer 2.0 Programmer’s Reference
9-12
9.3.3
Using the Read Function on a Scheduler
You can use the Read function to retrieve the events scheduled in any Scheduler that you have added
to the SmartServer. You can filter events using an xSelect statement and specifying one or more
Scheduler items. You can use the following filters in an xSelect statement when using the Read
function on a Scheduler:
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.
UCPTeventFilter This property may have one of following values:
EF_NUL: Show all events. This is the same as not specifying
and UCPTeventFilter.
EF_DAY: Show only first event scheduled for each day.
EF_SCHEDULE: Show only one event for each scheduler.
position() Position of the event in previously selected list. You can use this
filter to limit the number of events in a result. You can compare the
number of events to be returned using equal, less (or equal), or great
(or equal). You can request a maximum of 2,500 events; however,
more than 2,500 events may be returned.
Note: The last instance of an event before the specified start date is
always returned (if it exists), and it is not counted by the position()
constraint.
You can include one item of type UFPTscheduler_Calendar_Request_Data, which causes a Read
function on a Calendar item. This information is used to calculate date-based events. You can also
include an item of type UFPTscheduler_RealTimeClock_Request_Data, which defines start point for
relative times for each day. By default, all relative times are calculated from 0:00:00. If calendar
and/or real time clock data is specified, the data in the response is bound to given start and stop dates.
Request
<Read xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem>
<xSelect> //Item[@xsi:type="UFPTscheduler_Data"]
[UCPTlastUpdate&gt;= "2008-03-01T00:00:00.000" and
UCPTlastUpdate&lt;= "2008-04-01T00:00:00.000"]
[UCPTeventFilter="EF_NUL"]
[position()&lt;500]
</xSelect>
<Item xsi:type="UFPTscheduler_Calendar_Request_Data">
<UCPTname>Net/LON/iLON App/Calendar</UCPTname>
</Item>
<Item xsi:type="UFPTscheduler_RealTimeClock_Request_Data">
<UCPTname>Net/LON/iLON App/Real Time Clock</UCPTname>
</Item>
<Item>
<UCPTname>Net/LON/iLON App/Scheduler[0]__TEMP_OBJECT</UCPTname>
</Item>
</iLonItem>
</Read>
Response
<ReadResponse xmlns="http://wsdl.echelon.com/web_services_ns/ilon100/v4.0/message/">
<iLonItem >
<UCPTfaultCount>0</UCPTfaultCount>
Page view 142
1 2 ... 138 139 140 141 142 143 144 145 146 147 148 ... 442 443

Comments to this Manuals

No comments