gpt4 book ai didi

ios - CBPeripheralManager 读/写

转载 作者:行者123 更新时间:2023-11-29 13:10:23 24 4
gpt4 key购买 nike

我在 iPhone 上使用 CoreBluetooth,我想知道是否有办法从外围设备端执行读/写请求。我已经设置了一个 CBPeripheralManager 和一个委托(delegate),但是通过文档查看我没有看到任何方法来读取外围设备的属性甚至它自己的属性。

这只能来自 Central 吗?

最佳答案

是的。 CoreBluetooth 假定如果您要设置外围设备,则不会查询蓝牙堆栈来检索关于您自己的属性,而只会查询一些内部数据结构。

关于ios - CBPeripheralManager 读/写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17559347/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com