L2CAP Channel data transfer

ⅰ亾dé卋堺 提交于 2019-12-03 17:17:28

0x25 PSM is for OTS. You need ATT PSM which is 0x1F

Ernesto Perez

I had a similar problem. I manage to solve it by creating a variable to save "channel: CBL2CAPChannel?" in the function

func peripheral(_ peripheral: CBPeripheral, didOpen channel: CBL2CAPChannel?, error: Error?)

I was only saving the "channel.outputStream", which was the only one I needed. But it looks like if you don't save it, it will be closed.

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