Skip to content

How to make a custom trigger (condition) in my acap application? Like in Axis Video Motion Detector #62

Closed Answered by shadysp
AlexeyKozlovsky asked this question in ACAP
Discussion options

You must be logged in to vote

First one need to use the right name spae.
The namespace tns1 is defined by Onvif and tnxaxis is defined by Axis.

About the events name spaces and topics please see that link.
https://www.axis.com/techsup/developer_doc/acap3/3.5/api/axevent/html/axevent_8h.html

From that link, here are some explanation :
All events are expressed as a set of key/value pairs, where the key should be assigned to a namespace. For example, the event describing that the first I/O port is active is described by the following key/value pairs.
tns1:topic0=Device
tnsaxis:topic1=IO
tnsaxis:topic2=Port
port=0
state=1
Where
tns1: is a name space.
topic0: is a key.
Device: is a value.

So in this example you have event …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shadysp
Comment options

Answer selected by vivekatoffice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
ACAP
Labels
None yet
3 participants