Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前,iOS 不支持 GAP Central 角色和 ATT Server 角色的组合以及 GAP Peripheral 角色和 ATT Client 角色的组合。
苹果在这方面工作吗?有人知道什么时候可以这样做吗?
如果您开发的是非 iOS 外围设备,那么一旦 iOS 中心连接到您,您应该能够开始充当 ATT 客户端。ATT 数据库是跨应用程序共享的,应该可以通过这种方式访问。您可以使用 CPBeripheralManager 在单独的应用程序或同一应用程序中初始化它。
否则,Apple 没有迹象表明他们会考虑这个用例,所以我不希望它在可预见的将来实施。