connectBluetoothDevice
蓝牙连接
聚合接口,支持 Bluetooth LE、双模中 Bluetooth LE、Beacon、Mesh、Mesh 单火类连接。
引入
import { connectBluetoothDevice } from '@ray-js/ray';
需引入
DeviceKit
,且在>=3.1.0
版本才可使用。
参数
Object object
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
devId | string |
是 | 设备 ID | |
timeoutMillis | number |