# tslV2QueryAllProperties ^8.13.1
全属性(properties)查询(物模型2.0)
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
applianceCode | String | N/A | 设备编码 |
sync | Number | N/A | 是否同步 1/0 |
# 接口调用示例
const params = {
applianceCode: '5123791273891273', //设备编码
sync: 1
}
this.$bridge
.tslV2QueryAllProperties(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
# 返回参数
Prop | Type | Default | Description |
---|---|---|---|
code | Number | N/A | 0: 请求成功 |
data | Array | N/A | 物模型返回的数据 |
- data 对象属性
Prop | Type | Default | Description |
---|---|---|---|
requestId | String | N/A | 请求ID |
data | String | N/A | "data": { "prop1": "aaa", "prop2": "bbb", "prop3": "ccc" } |