deviceUpdateNotify ^6.8
设备插件页(wireless家电,套装子设备)设备属性、状态改变后,通知原生刷新数据接口
#请求参数
| Prop |
Type |
Default |
Comment |
type |
String |
N/A |
'deviceModify', //通知类型 |
deviceId |
String |
N/A |
设备ID |
param |
Object |
N/A |
每种通知类型都会传 |
| Prop |
Type |
Default |
Comment |
deviceName |
String |
N/A |
'设备名称' |
roomName |
String |
N/A |
更改房间时传 |
roomId |
String |
N/A |
更改房间时传 |
deviceModify |
String |
N/A |
修改设备属性(改设备名称,改所属房间,改endpoint名字等) |
#接口调用示例
const params = {
type: 'deviceModify', //通知类型
deviceId: '28821099922' //设备ID
param: { //每种通知类型都会传
deviceName: '设备名称' , //更改设备名字时传
roomId: 'xxxx', //更改房间时传
roomName: 'xxxx' //更改房间时传
}
}
this.$bridge
.deviceUpdateNotify(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
#返回参数