Chapter 8. Device Access
Communicating with and controlling devices are the primary applications of a service gateway. The device access (DA) allows bundles to interact with devices as objects in the Java virtual machine. It is an optional OSGi component and defines a framework in its own right. It is not used as a service like the Log service or the HTTP service. We first discuss what it intends to achieve (and what it is not designed to do), then explain how it works not only conceptually but also with a hands-on exercise, and lastly provide a comprehensive example in which we configure the serial port through a Web interface using the HTTP service.
Get Programming Open Service Gateways with Java Embedded Server™ Technology now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.