updateDeviceInfo 更新设备信息

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)
  })

#返回参数

  • 成功时返回
Prop Type Default Description
errorCode String N/A
errorMessage String N/A
  • 失败时返回
posted on 2024-12-21 14:46  AtlasLapetos  阅读(7)  评论(0)    收藏  举报