javascript - 需要访问自行车蓝牙速度传感器服务名称。蓝牙分配服务页面已关闭。我还能在哪里找到这些信息?
问题描述
我想查找将这个示例从电池服务更改为自行车速度传感器服务所需的服务。只需执行navigator.bluetooth.requestDevice(acceptAllDevices=true)
与自行车速度传感器设备配对的工作,但由于我没有为其提供正确的服务名称而出错。
navigator.bluetooth.requestDevice({ filters: [{ services: ['battery_service'] }] })
.then(device => { /* … */ })
.catch(error => { console.error(error); });
我发现心率{filters:[{services:[ 'heart_rate' ]}]})
只是猜测。仍然没有弄清楚骑车速度和踏频传感器的名称。由于文档已关闭,有没有办法自省requestDevice
得到这个?
https://webbluetoothcg.github.io/web-bluetooth/#biblio-bluetooth-assigned-services
给出链接
https://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorsHomePage.aspx
哪个页面不再存在,403 Forbidden错误
解决方案
推荐阅读
- dynamics-crm - 合并来自 Dynamics CRM 工作流的字段时出错
- rust - 有没有办法交换 Rust 二叉搜索树中的节点?
- node.js - 错误:运行 Node.js 以发送电子邮件时连接 ECONNREFUSED
- javascript - ... Vue-TypeScript 应用程序中的 mapActions 导致错误
- python - python中将连续重复的列表元素打包到子列表中的函数
- javascript - 检查组件是否在视口中:无限渲染
- laravel - 不应静态调用非静态方法 Illuminate\Database\Eloquent\Model::newQuery()
- node.js - 如何使用 ActiveMQ 仪表板查看消费者的优先级?
- android - avdmanager 挂在“正在加载本地存储库...”Linux
- python - 如何编辑路径字符串的文件名