Skip to content

store event listnew

Chris Petersen edited this page Oct 16, 2014 · 1 revision

store-event-listnew lists the message(s)/event(s) that are newer than the timestamp. If no timestamp is provided all events in that store are returned.

Parameter Description
store Store name
tstamp Optional: Timestamp past which we want the events

Example

Example 1: Trigger a paging alarm event for OR5 with string "Out of syringes" and check if new events have occured.

> (set! ##now (current-time-seconds))
> (define roomname "OR5")
> (define room (make-store roomname))
> (define prio 3)
> (define str "Out of syringes")
> (store-event-add room prio roomname (string-append "Please come soon" "|" str))
> (store-event-listnew room)
((1398451284.928581. "OR5:Please come soon|Out of syringes" 3))
Clone this wiki locally