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 BluetoothClassic | The classic Bluetooth (BR/EDR) role: device discovery, bonding and RFCOMM stream connections. |
class ClassicDiscovery | Live handle of a running classic discovery (inquiry scan, ~12 seconds) returned by BluetoothClassic.startDiscovery(ClassicDiscoveryListener). |
interface ClassicDiscoveryListener | Receives device sightings during a classic discovery started via BluetoothClassic.startDiscovery(ClassicDiscoveryListener). |
class ClassicScanResult | One device sighting during a classic discovery, delivered to a ClassicDiscoveryListener. |
class RfcommConnection | An open RFCOMM (Serial Port Profile style) stream connection to a classic Bluetooth device, obtained via BluetoothClassic.connect or accepted from an RfcommServer. |
class RfcommServer | A listening RFCOMM endpoint (SPP server) registered with the local SDP database via BluetoothClassic.listen(String, BluetoothUuid, boolean). |