# updateDeviceInfo ^6.8

更新设备信息(设备名,设备描述),通知设备属性变更设备名称、房间id和房间名

# 请求参数

Prop Type Default Comment
name String N/A 设备名
roomId String N/A 所属房间ID(仅布谷APP)

# 接口调用示例

let params = {
  name: 'xxx',
  roomId: 'xxx'
}
this.$bridge
  .updateDeviceInfo(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
1
2
3
4
5
6
7
8
9
10
11
12

# 返回参数

  • 成功时返回
Prop Type Default Description
errorCode String N/A
errorMessage String N/A
  • 失败时返回
更新时间: 7/27/2021, 11:23:45 AM