BluetoothRemoteGATTServer:connect() 方法
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
BluetoothRemoteGATTServer.disconnect() 方法会建立脚本执行环境与 this.device 的连接。
语法
js
connect()
参数
无。
返回值
Promise,其会兑现为 BluetoothRemoteGATTServer。
规范
| Specification |
|---|
| Web Bluetooth> # dom-bluetoothremotegattserver-connect> |
浏览器兼容性
Loading…