Package comm
Class OnI2CListener
Public Method onReceive
abstract void onReceive()
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
This method has to be implemented by the user in order to receive data via I2C. It will be
automatically called by the EventManagement.
The incoming data can be obtained calling the
I2C.read
method.
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.