MTUniversal API will invoke the callback function in this chapter to provide the requested data and/or a detailed response. To delegate the event, call the subscribeAll() function with the name of a class that implements the IEventSubscriber interface.
OnEvent() handles nearly all event types. The eventType parameter defines which event is triggered.
Return Value: None Example:
(void) OnEvent: (MTU_EventType) eventType
Data: (IData*) data;Parameter
Description
eventType
An enumeration indicating the event triggered by the device.
data
Contains the data for the event.