免配网 API
startDirectlyConnectedDeviceActivator
免配网-开始设备激活
引入
import { startDirectlyConnectedDeviceActivator } from '@ray-js/ray';
需引入
DeviceKit
,且在>=2.1.6
版本才可使用
参数
Object object
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
device | Device |
是 | 设备 Id device Device 设备模型 | |
timeout | number |
是 | timeout 超时时间设定(秒),建议值 120 | |
complete | function |
否 | 接口调用结束的回调函数(调用成功、失败都会执行) | |
success | function |
否 | 接口调用成功的回调函数 | |
fail | function |
否 | 接口调用失败的回调函数 |
Device
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
deviceId | string |
是 | 设备模型 deviceId 设备 Id |
startDirectlyConnectedSearchDevice
免配网-开始设备扫描
引入
import { startDirectlyConnectedSearchDevice } from '@ray-js/ray';
需引入
DeviceKit
,且在>=2.2.3
版本才可使用
参数
Object object
属性 | 类型 | 默认 |
---|