74
12
JSR 82 - Bluetooth API
Overview
JSR-82 covers the establishment of connections between devices for such applications as
peer-to-peer gaming and Bluetooth pen use.
There are two new requirements from this API. The
javax.bluetooth
package is
needed to establish general Bluetooth connections. The
javax.obex
package is
needed to provide Object Exchange support over Bluetooth and other transports.
Because OBEX is not limited to Bluetooth only, it resides as a separate package, but must
be supported by this API.
JSR-82 Bluetooth API
The complete requirements are defined in Java™ APIs for Bluetooth
TM
Wireless
Technology (JSR-82). The requirements listed here are a summary and specify how the
API relates to the native Bluetooth implementation on the phone.
System Requirements
JSR-82 utilizes Bluetooth for data connections only. The following protocols must be
supported:
•
L2CAP
•
RFCOMM
•
SDP
•
OBEX
o
OBEX is a separate API from the core Bluetooth API
(
javax.bluetooth
) and is a part of the
javax.obex
package.