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

An event listener implementation that uses a callback function. More...

Collaboration diagram for Callback Listener:

Classes

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

Typedefs

using uniot::CoreCallbackEventListener = CallbackEventListener<unsigned int, int, Bytes>
 Convenience alias for the most common usage of CallbackEventListener.
 

Detailed Description

An event listener implementation that uses a callback function.

This class provides a way to handle events via callback functions instead of subclassing EventListener directly. It wraps a callback function and calls it when an event is received.

Template Parameters
T_topicThe type used for event topics (typically an enum or integer).
T_msgThe type used for event messages/payloads.
T_dataThe type used for storing additional event data.

Typedef Documentation

◆ CoreCallbackEventListener

Convenience alias for the most common usage of CallbackEventListener.

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