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.
我已经实现了 Android 提供的用于连接心率监测器的蓝牙文件示例,但现在我希望简单地检测其他开启蓝牙文件的设备。
有没有人对那个样本做了我想要做的修改?或者有人知道是否有 Gatt 属性页面或我可以自己使用的东西吗?
示例 Android 项目默认执行此操作。我将它安装在我的 Android 设备上,然后按“扫描”使周围的 BLE 设备弹出。我不确定您是否使用了正确的示例,但您可以通过 Android Studio 中的示例项目导入它。
该示例项目中有一些特定于心率的代码,但这些代码专门处理心率测量数据,旨在展示如何读取特定服务。
通过查看代码中的心率示例,我能够成功读取血压测量值,并根据我的需要进行调整。
I'm using jQuery 1.9.1 and trying to have an ajax query which is called every 5 seconds and updates some content.
Using the code below, I get the following error in Chrome's conso