Uniot Core
0.8.1
Loading...
Searching...
No Matches

Listener for EventBus events that can subscribe to specific topics. More...

Collaboration diagram for Listener:

Topics

 Callback Listener
 An event listener implementation that uses a callback function.
 

Classes

class  uniot::EventListener< T_topic, T_msg, T_data >
 

Typedefs

using uniot::CoreEventListener = EventListener<unsigned int, int, Bytes>
 Type alias for the common EventListener configuration used in the core system.
 

Detailed Description

Listener for EventBus events that can subscribe to specific topics.

EventListener is a base class for objects that need to listen to events on the event bus. It extends EventEmitter to also allow for receiving events through the event system.

Template Parameters
T_topicType used for topic identification (e.g. unsigned int)
T_msgType used for message payload (e.g. int)
T_dataType used for additional data (e.g. Bytes)

Typedef Documentation

◆ CoreEventListener

using uniot::CoreEventListener = EventListener<unsigned int, int, Bytes>

Type alias for the common EventListener configuration used in the core system.

Uses unsigned int for topics, int for messages, and Bytes for data