Package ej.bluetooth

Class BluetoothConnection


  • public class BluetoothConnection
    extends Object
    The BluetoothConnection class represents a connection with a remote Bluetooth device.

    Connections may be retrieved by listening to connection events while connecting to a device or while advertising. The GAP events related to a device may be handled by setting the connection listener of the adapter.

    This class provides a method to get the address of the remote device. It also allows to disconnect to the device, to manage pairing and to discover the services that the device provides.