问题
I am developing an application on iOS that connects to a Bluetooth A2DP device but I can not send instructions in hexadecimal to make it work. Somebody could help me? I can not find information.
With AVAudioSession.sharedInstance().currentRoute I can see the UID and the name of the device but not send data.
let route = AVAudioSession.sharedInstance().currentRoute
let outPort = route.outputs.first
if let outPort = outPort {
print("out port name:\(outPort.portName)")
}
Could you help me?
Thanks!
来源:https://stackoverflow.com/questions/53546426/is-possible-send-hexadecimal-data-to-a2dp-bluetooth-device-in-swift