@@ -8,7 +8,7 @@ using OnEventReceived = function<void(uint8_t, uint8_t)>;
...
@@ -8,7 +8,7 @@ using OnEventReceived = function<void(uint8_t, uint8_t)>;
where the two parameters are the event ID and the topic on which that event has been received.
where the two parameters are the event ID and the topic on which that event has been received.
For each one of the specified topics, a **Sniffer** is created.
For each one of the specified topics, a **Sniffer** is created.
A Sniffer is a very simple class that extends [EventHandlerBase](EventHandler): when created it subscribes to the given topic and when an event is posted on that topic (i.e. its *postEvent(const Event& ev)* method is called) it calls the callback function (passing it the event ID and the topic).
A Sniffer is a very simple class that extends [EventHandlerBase](EventHandler): when created it subscribes to the given topic and when an event is posted on that topic (i.e. its _postEvent(const Event& ev)_ method is called) it calls the callback function (passing it the event ID and the topic).
You can find the complete implementation of the EventSniffer in `src/shared/events/utils/EventSniffer.h`.
You can find the complete implementation of the EventSniffer in `src/shared/events/utils/EventSniffer.h`.