iOs CoreBluetooth Central Server and Peripheral Client

天涯浪子 提交于 2020-01-05 19:29:30

问题


Currently, iOS does not support the combination GAP Central role and ATT Server role as well as the combination GAP Peripheral role and ATT Client role.

Is Apple working on this? Does someone know when it will be possible to do so ?


回答1:


If you develop a non iOS peripheral, then you should be able to start acting as ATT client once the iOS central connected to you. The ATT database is shared accross applications and should be accessible this way. You can initialize it in a separate app or in the same app using a CPBeripheralManager.

Otherwise, there has been no indication from Apple that they would be considering this use case so I wouldn't expect it be implemented in the foreseeable future.



来源:https://stackoverflow.com/questions/20655068/ios-corebluetooth-central-server-and-peripheral-client

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