菜鸟教程小白 发表于 2022-12-12 16:25:36

ios - 使用 Arduino 的 CoreBluetooth 外设


                                            <p><p>如果我想将外围设备 (Arduino) 连接到我的中央 (Iphone) 是否必须将 arduino 中的数据结构化为服务和特征?我见过一些项目,其中 iphone 连接到 arduino 但 iphone 扫描 UUID 和服务,所以我不确定他们是如何在 arduino 端实现代码的?</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><p>作为 BLE 外围设备,您的 Arduino 将宣传您指定的一项或多项服务(具有特征)。</p>

<p>您在评论中提到您正在使用 RedBearLabs BLE 防护罩。您可以使用 RedBearLab 库(从 <a href="http://redbearlab.com/bleshield/" rel="noreferrer noopener nofollow">http://redbearlab.com/bleshield/</a> 下载)在您的 Arduino 草图中设置您的服务。例如,见 <a href="http://tupps.com/?p=313" rel="noreferrer noopener nofollow" title="Getting Going With iOS and Arduino Using Bluetooth LE">Getting Going With iOS and Arduino Using Bluetooth LE</a> .</p></p>
                                   
                                                <p style="font-size: 20px;">关于ios - 使用 Arduino 的 CoreBluetooth 外设,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/20039839/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/20039839/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - 使用 Arduino 的 CoreBluetooth 外设