'Swift iOS connecting Bluetooth classic audio device
Currently working on an application that is meant to connect to BLE and Bluetooth classic devices. BLE connection has worked successfully but I have not been able to connect to a Bluetooth classic audio device. Using the example from Apple Docs
I haven't found any answers from the previous questions around this topic. Any feedback would be appreciated.
struct BTConstants {
// These are sample GATT service strings. Your accessory will need to include these services/characteristics in its GATT database
static let sampleServiceUUID = CBUUID(string: "0004")
// 0004 0000
static let sampleCharacteristicUUID = CBUUID(string: "BBBB")
}
let matchingOptions = [CBConnectionEventMatchingOption.serviceUUIDs: [BTConstants.sampleServiceUUID]]
cbManager.registerForConnectionEvents(options: matchingOptions)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
