All pages
Powered by GitBook
1 of 1

Loading...

IEventSubscriber

This interface invokes a callback function to receive data and/or a detailed response. To register for the event(s), call the subscribeAll() function with the name of a class that implements the IEventSubscriber interface.

This function sets a callback function to notify when the device has an ARQC message send to the host.

Return Value: None

void OnEvent(
        EventType eventType,
        IData data)

Parameter

Description

eventType

An enumeration for EventType. This indicates the event triggered by the device.

data

Contains the data for the event. The payload is dependent on the event type. Builder classes associated with the event type may be used to parse the data into an assciated data object. Details for Builder classes are in the section Data Classes.

OnEvent