package com.codename1.bluetooth.classic

Classic Bluetooth (BR/EDR): inquiry discovery (ClassicDiscovery), bonded-device listing and RFCOMM stream connections (RfcommConnection, RfcommServer).

Obtain via Bluetooth.getInstance().getClassic() and branch on Bluetooth.getInstance().isClassicSupported() – iOS does not expose classic Bluetooth to applications. The RFCOMM streams block and must be consumed off the EDT.

Types

class BluetoothClassicThe classic Bluetooth (BR/EDR) role: device discovery, bonding and RFCOMM stream connections.
class ClassicDiscoveryLive handle of a running classic discovery (inquiry scan, ~12 seconds) returned by BluetoothClassic.startDiscovery(ClassicDiscoveryListener).
interface ClassicDiscoveryListenerReceives device sightings during a classic discovery started via BluetoothClassic.startDiscovery(ClassicDiscoveryListener).
class ClassicScanResultOne device sighting during a classic discovery, delivered to a ClassicDiscoveryListener.
class RfcommConnectionAn open RFCOMM (Serial Port Profile style) stream connection to a classic Bluetooth device, obtained via BluetoothClassic.connect or accepted from an RfcommServer.
class RfcommServerA listening RFCOMM endpoint (SPP server) registered with the local SDP database via BluetoothClassic.listen(String, BluetoothUuid, boolean).