User's Guide

Tarvos User Guide - Version 0.3 63
reader.events.register()
Permission
admin
Min parameters
1
Max parameters
2
Registers for events on a specific C2 event channel. Must specify 'name'. If
an event channel has not been bound (see reader.events.bind), the 'id' must
also be specified.
Param 1: 'id' ==> (Integer) C2 event channel identifier.
Param 2: 'name' ==> (String) Event mask to register for channel output.
'name' is a wildcard mask. If any event matches the mask, it will be sent
out that event channel. If you set 'name' to 'event.tag', then all events
starting with 'event.tag' will come out the event channel. e.g.,
'event.tag.arrive', 'event.tag.report', 'event.tag.depart', ....
When connecting to an event channel via port 50008, the first output string you
will see will be something like:
"event.connection id = 532"
Where '532', is the event id used in this command. For example:
reader.events.register(id=532,name=event.tag.arrive)
ok
reader.unregister_event()
Permission
admin
Min parameters
1
Max parameters
2
Please use reader.events.unregister() instead.
reader.events.unregister()
Permission
admin
Min parameters
1
Max parameters
2
Unregisters for events on a specific C2 event channel. Must specify 'name'. If
an event channel has not been bound (see reader.events.bind), the 'id' must also
be specified.
Param 1: 'id' ==> (Integer) C2 event channel identifier.
Param 2: 'name' ==> (String) Event mask to unregister for channel output.
For a list of currently registered for events, see
reader.events.list_registered()
When connecting to an event channel via port 50008, the first output string you
will see will be something like:
"event.connection id = 532"
Where '532', is the event id used in this command. For example:
reader.events.unregister(id=532,name=event.tag.arrive)
ok