Package comm
Class OnSPIListener
Public Method onReceive
abstract void onReceive(int[] data)
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
This method has to be implemented by the user in order to receive data from a comm interface. It will be
automatically called by the EventManagement.
The incoming data is passed in the byte array data.
Note
- This method is executed in the Event-Thread. Please make sure that
data transfer between the Main-Thread and the Event-Thread is correctly
synchronized. Consider making it synchronized in the implementing class.
-
Due to the fact that this method is executed in the event handling loop it's
important to keep it efficient and avoid unnecessary delays because they might
block other events from beeing processed.
Copyright © demmel products gmbh. All rights reserved.