#include <EventSniffer.h>
Class that subscribe to many topics and calls a callback when an event is received.
Definition at line 44 of file EventSniffer.h.
◆ EventSniffer() [1/2]
Boardcore::EventSniffer::EventSniffer |
( |
EventBroker & | broker, |
|
|
vector< uint8_t > | topics, |
|
|
OnEventReceived | onEventReceived ) |
|
inline |
EventSniffer that sniffs only the specified topics
- Parameters
-
broker | Event broker to subscribe to |
topics | Which topics to sniff |
onEventReceived | Callback to call upon receiving an event |
Definition at line 55 of file EventSniffer.h.
◆ EventSniffer() [2/2]
Boardcore::EventSniffer::EventSniffer |
( |
EventBroker & | broker, |
|
|
OnEventReceived | onEventReceived ) |
|
inline |
EventSniffer that sniffs all the possible topics (0-255)
- Parameters
-
broker | Event broker to subscribe to |
onEventReceived | Callback to call upon receiving an event |
Definition at line 68 of file EventSniffer.h.
◆ ~EventSniffer()
Boardcore::EventSniffer::~EventSniffer |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: