BluetoothRemoteGATTServer:connect() 方法
>BluetoothRemoteGATTServer.disconnect() 方法会建立脚本执行环境与 this.device 的连接。
语法
js
connect()
参数
无。
返回值
Promise,其会兑现为 BluetoothRemoteGATTServer。
规范
| 规范 |
|---|
| Web Bluetooth> # dom-bluetoothremotegattserver-connect> |
此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
BluetoothRemoteGATTServer.disconnect() 方法会建立脚本执行环境与 this.device 的连接。
connect()
无。
Promise,其会兑现为 BluetoothRemoteGATTServer。
| 规范 |
|---|
| Web Bluetooth> # dom-bluetoothremotegattserver-connect> |