Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Event listener. More...
#include <cs_EventListener.h>
Public Member Functions | |
EventListener () | |
virtual | ~EventListener () |
unregisters the listener. More... | |
virtual void | handleEvent (event_t &event)=0 |
Handle events. More... | |
void | listen () |
Registers this with the EventDispatcher. More... | |
Event listener.
|
inline |
|
virtual |
unregisters the listener.
|
pure virtual |
Handle events.
This method is overloaded by all classes that derive from EventListener. They can receive an event_t struct and act upon it. These events are dispatched by the EventDispatcher.
Implemented in Advertiser, BleCentral, CrownstoneCentral, ServiceData, Crownstone, ADC, Gpio, Twi, AssetForwarder, Mesh, MeshAdvertiser, MeshCore, MeshMsgSender, Microapp, MicroappInterruptHandler, BackgroundAdvertisementHandler, CommandAdvHandler, CommandHandler, FactoryReset, MultiSwitchHandler, PowerSampling, Scanner, Setup, TapToToggle, CrownstoneService, SetupService, State, TestCentral, TestCrownstoneCentral, SystemTime, UartConnection, UartHandler, ConnectionEncryption, BehaviourHandler, BehaviourStore, AssetFiltering, AssetFilterStore, AssetFilterSyncer, MeshTopology, MeshTopologyResearch, NearestCrownstoneTracker, TwilightHandler, AssetStore, PresenceHandler, SafeSwitch, SmartSwitch, SwitchAggregator, and TrackedDevices.
void EventListener::listen | ( | ) |
Registers this with the EventDispatcher.