ty.playnet.isSystemPopupInAutoConnectAp
在自动连接热点场景下,是否是系统控制弹窗的
需引入
PlayNetKit,且在>=1.1.0版本才可使用
请求参数
Object object
| 属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| complete | function |
否 | 接口调用结束的回调函数(调用成功、失败都会执行) | |
| success | function |
否 | 接口调用成功的回调函数 | |
| fail | function |
否 | 接口调用失败的回调函数 |
返回结果
- success
Boolean boolean
- fail
| 属性 | 类型 | 说明 |
|---|---|---|
| errorMsg | string |
插件错误信息 |
| errorCode | string |
错误码 |
| innerError | object |
插件外部依赖错误信息 {errorMsg: string, errorCode: string } |
请求示例
ty.playnet.isSystemPopupInAutoConnectAp()
.then((res) => {
console.log(res);
})
.catch((error) => {
console.log(error);
});
返回示例
true
ty.playnet.queryDeviceConfigState
蓝牙连接 / AP监听广播包后 并查询状态 然后再开始查询wifi列表
需引入
PlayNetKit,且在>=1.1.0版本才可使用
请求参数
Object object
| 属性 | 类型 | 默认值 | 必填 | 说明 |
|---|---|---|---|---|
| homeId | number/string |
是 | homeid | |
| pairType | string |
是 | 配网类型,后续新流程添加在这里 AP -> "AP" WIFI_BLE -> "WIFI_BLE" | |
| bleWifiPairParams | ScanDevicePacket |
是 | 蓝牙扫描出来的广播包,目前只有wifi双模需要填写 | |
| timeout | number |
否 | 超时时间 | |
| complete | function |
否 | 接口调用结束的回调函数(调用成功、失败都会执行) | |
| success | function |
否 | 接口调用成功的回调函数 | |
| fail | |

最低0.47元/天 解锁文章
5385

被折叠的 条评论
为什么被折叠?



