iOs CoreBluetooth Central Server and Peripheral Cl

2019-07-27 10:13发布

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条回答
forever°为你锁心
2楼-- · 2019-07-27 11:04

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.

查看更多
登录 后发表回答