![]() |
|
Uniot Core
|
| 0.8.1 |
An event listener implementation that uses a callback function. More...
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. | |
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.
| T_topic | The type used for event topics (typically an enum or integer). |
| T_msg | The type used for event messages/payloads. |
| T_data | The type used for storing additional event data. |
| using uniot::CoreCallbackEventListener = CallbackEventListener<unsigned int, int, Bytes> |
Convenience alias for the most common usage of CallbackEventListener.
Uses unsigned int for topics, int for messages, and Bytes for data storage.