# sendGatewayTransportRequest ^6.8
云网关:美智云网关透传数据接口(传输过程中有加密解密动作)
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
topic | String | N/A | 透传命令如 /subdevice/add |
modelId | String | N/A | 子设备modelId |
applianceCode | String | N/A | 网关ID |
homegroupId | String | N/A | 家庭ID |
order | Object | N/A | |
command | Object | N/A |
# 接口调用示例
const params = {
homegroupId: 'xxxx', //家庭ID
applianceCode: 'xxx', //网关ID
modelId: '', //子设备modelId
topic: 'xxx', //透传命令如 /subdevice/add
command: {},
order: {},
}
this.$bridge
.sendGatewayTransportRequest(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# 返回参数
成功时返回
失败时返回
Prop | Type | Default | Description |
---|---|---|---|
errorMessage | String | N/A | 错误消息 |
errorCode | Number | N/A | 错误码 |