# queryDeviceProxyStatus ^9.4.0

查询网关代理状态

# 请求参数

Prop Type Required Default Description
param Object Y {}
属性:
mac:{
Type: String,
Default: N/A,
Description: 蓝牙mac地址
}
applianceId:{
Type: String,
Default: N/A,
Description: 设备id,(可以从getDeviceInfo中读取deviceId<)
}

# 接口调用示例


let param={
    mac:"xxxx", //蓝牙mac地址,从getDeviceInfo中读取mac
    applianceId:"xxx", //设备id, getDeviceInfo中读取deviceId
}

this.$bridge
    .queryDeviceProxyStatus(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

# 返回参数

Prop Type Default Description
code Number N/A 0: 请求成功
status Array N/A 0没有代理或者说未连接 1:已连接 2:连接中

TIP

该接口基于mSmart 协议,底层由singleBlueToothModule单蓝牙支持

Last Updated: 3/26/2025, 6:05:03 PM