Skip to content

Stateless Events Not Firing Rules #377

Closed Answered by kaiiorg
kaiiorg asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know if this is the complete answer, but this is what I've learned so far:

  • Can be stateless or stateful
  • All topicX keys must be in tnsaxis or tns1 namespace any other (or no) namespace and it stops working, even after recreating the rule.
  • All data values on the event to be sent must be not NULL
  • At least one value must change since the last event; I'm using a time string
    • Not 100% sure about this one, but this currently works for me

Code

#include <axsdk/axevent.h>
#include <glib-object.h>
#include <glib.h>
#include <string.h>
#include <syslog.h>
#include <time.h>

typedef struct {
    AXEventHandler* event_handler;
    guint           event_id;
    guint           timer;
    gb…

Replies: 2 comments 2 replies

Comment options

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

Comment options

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

Answer selected by kaiiorg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants