For the complete documentation index, see llms.txt. This page is also available as Markdown.

IEventSubscriber Delegate

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

OnEvent() handles nearly all event types. The eventType parameter defines which event is triggered.

(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.

Return Value: None Example:

Last updated