Is possible send hexadecimal data to A2DP Bluetooth Device in swift?

北城余情 提交于 2019-12-08 09:35:22

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!