Treffer: Java & Bluetooth.

Title:
Java & Bluetooth.
Authors:
Tremblett, Paul1 paul@tremblett.us
Source:
Dr. Dobb's Journal: Software Tools for the Professional Programmer. Jul2005, Vol. 30 Issue 7, p41-44. 4p. 2 Color Photographs.
Database:
Business Source Premier

Weitere Informationen

This article examines how programmers can use the Java Specification Request (JSR) 82 API to determine properties of local Bluetooth devices; discover nearby Bluetooth devices and determine the services they offer; and connect to devices and communicate with them using well-defined protocols. The author begins by describing the various characteristics of all Bluetooth devices. The Java Specification Request 82 defines a standard API for developing Bluetooth applications using the Java programming language. Typically, Bluetooth applications run under Java 2 Micro Edition, but one of the requirements defined by the specification is that it should be able to run on any Java 2 platform that supplies the Generic Connection Framework (GCF). Consequently, the author was able to run all of the sample code presented here under Java 2 Standard using Rococosoft's Impronto Developer Kit, which implements GCF. The author concludes that the classes and interfaces supplied with an implementation of JSR 82 provide everything programmers need to develop Bluetooth applications for a variety of devices. The approach taken by the designers of the JSR shields programmers from unnecessary lower level details and Java guarantees portability.