BindModule 绑定模块
模块概述
支持快连3.0接口模块
方法列表
- bindDeviceWithoutWifi
- updateRouterInfo
- getConfigRouterInfo
公共数据
- 路由器信息模型RouterInfo
{ "ssid": "000000", "bssid": "", "password": "" }
方法说明
bindDeviceWithoutWifi
bindDeviceWithoutWifi
使用说明
绑定接口,需要判断device的controlState值为controllableAndAuthorized
适用性
容器 | cordova | APICloud | Nebula |
---|---|---|---|
支持情况 | 不支持 | 不支持 | 是 |
APP版本 | / | / | 7.5.0 及以上 |
params 输入参数
属性名 | 数据类型 | 是否必填 | 默认值 | 说明 |
---|---|---|---|---|
deviceId | string | 是 | / | 设备id |
listener | function | 是 | / | 进度回调函数 |
示例
uplusapi.bindModule.bindDeviceWithoutWifi({'deviceId': 'DC330D6B5998'},(data)=>{}}).then((result) => {
console.log("bindDeviceWithoutWifi",result);
}).catch((err) => {
console.log("bindDeviceWithoutWifi",err);
});
updateRouterInfo
updateRouterInfo
使用说明
更新配网信息
适用性
容器 | cordova | APICloud | Nebula |
---|---|---|---|
支持情况 | 不支持 | 不支持 | 是 |
APP版本 | / | / | 7.5.0 及以上 |
params 输入参数
属性名 | 数据类型 | 是否必填 | 默认值 | 说明 |
---|---|---|---|---|
deviceId | string | 是 | / | 设备id |
routerInfo | RouterInfo | 是 | / | 路由器信息 |
listener | function | 是 | / | 进度回调函数 |
示例
uplusapi.bindModule.updateRouterInfo({'deviceId': 'DC330D6B5998','routerInfo': {'ssid':'','password':''}},,(data)=>{}).then((result) => {
console.log("updateRouterInfo",result);
}).catch((err) => {
console.log("updateRouterInfo",err);
});
getConfigRouterInfo
getConfigRouterInfo
使用说明
更新配网信息
适用性
容器 | cordova | APICloud | Nebula |
---|---|---|---|
支持情况 | 不支持 | 不支持 | 是 |
APP版本 | / | / | 7.5.0 及以上 |
params 输入参数
属性名 | 数据类型 | 是否必填 | 默认值 | 说明 |
---|---|---|---|---|
示例
uplusapi.bindModule.getConfigRouterInfo().then((result) => {
console.log("getConfigRouterInfo",result);
}).catch((err) => {
console.log("getConfigRouterInfo",err);
});