# Package com.codename1.bluetooth.classic

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.

- Related Packages
  Package
  Description
  com.codename1.bluetooth
  Cross-platform Bluetooth API: adapter state, runtime permissions and capability queries.
  com.codename1.bluetooth.gatt
  The client-side GATT model discovered on a remote peripheral: `GattService`, `GattCharacteristic` (read/write/subscribe), `GattDescriptor`, notification listeners and ATT status codes.
  com.codename1.bluetooth.helper
  Shared implementation support for the ports that talk to the native `cn1-ble-helper` subprocess (JavaSE real-hardware, Win32 and Linux).
  com.codename1.bluetooth.le
  BLE central role: scanning (`BluetoothLE`, `ScanSettings`, `ScanFilter`, `ScanResult`, `BleScan`), connections and the GATT client (`BlePeripheral`, connection events) and L2CAP connection-oriented channels (`L2capChannel`, `L2capServer`).
- Class
  Description
  BluetoothClassic
  The classic Bluetooth (BR/EDR) role: device discovery, bonding and RFCOMM stream connections.
  ClassicDiscovery
  Live handle of a running classic discovery (inquiry scan, ~12 seconds) returned by `BluetoothClassic.startDiscovery(ClassicDiscoveryListener)`.
  ClassicDiscoveryListener
  Receives device sightings during a classic discovery started via `BluetoothClassic.startDiscovery(ClassicDiscoveryListener)`.
  ClassicScanResult
  One device sighting during a classic discovery, delivered to a `ClassicDiscoveryListener`.
  RfcommConnection
  An open RFCOMM (Serial Port Profile style) stream connection to a classic Bluetooth device, obtained via `BluetoothClassic.connect(BluetoothDevice, BluetoothUuid, boolean)` or accepted from an `RfcommServer`.
  RfcommServer
  A listening RFCOMM endpoint (SPP server) registered with the local SDP database via `BluetoothClassic.listen(String, BluetoothUuid, boolean)`.