gpt4 book ai didi

ios - 从iOS应用程序向Bluetooth LE设备发送命令

转载 作者:行者123 更新时间:2023-12-01 18:53:00 25 4
gpt4 key购买 nike

我正在构建一个用于与Bluetooth LE设备进行交互的简单IOS应用。

主要步骤(连接,发现服务,发现特征和读取特征的值)正确完成。

现在,我正在搜索的教程/示例,将 命令发送到所连接的Bluetooth LE设备。

我在《 Apple开发人员指南》中搜索,但没有找到任何东西。

最佳答案

您应该查看Apple的TemperatureSensor示例,特别是在其调用[servicePeripheral writeValue:data ...的位置

关于ios - 从iOS应用程序向Bluetooth LE设备发送命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29736236/

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