【发布时间】:2020-06-23 07:56:22
【问题描述】:
通过使用 API navigator.bluetooth.requestDevice(),网页可以请求用户允许他与蓝牙设备配对并建立连接。批准请求后,假设用户重新加载网页。有没有办法让网络连接到该配对设备而无需再次请求许可?
我知道我们可以在 web-usb 中使用 API navigator.usb.getDevices() 做到这一点,但我找不到在 web-bluetooth 中做到这一点的方法。请任何人帮忙。
谢谢
【问题讨论】:
标签: javascript google-chrome web-bluetooth webusb