Brill asks:
> Ok, so the IO does happen with events...
Only for interrupt/asynchronous data (pushed data).
> How does the external caller
> request data from JAPL device?
For pulled data, the Embedlet would just issue a JAPL API call like getSwitchStatus()
against the JAPL API. No events needed.
There is also a hybrid approach where an Embedlet Event is generated (by a wrapper class)
when something "interesting" happens at the JAPL peripheral level. And upon receipt of the
event, a particular Embedlet can issue a a JAPL API call like getSwitchStatus() against the
JAPL API...or maybe a setSwitchState() call instead to actuate something.
Does this clear things up a bit?
...Andrzej
Chaeron Corporation
http://www.chaeron.com
|