# queryAuthStatus ^6.8

查询确权状态

# 请求参数

Prop Type Default Comment
mac String N/A 蓝牙mac地址
name String N/A 选填,蓝牙名称

# 接口调用示例

const params = {
  name: 'midea_xx_xxxx', //选填
  mac: 'xxxxxxxxxxxx', //
}
this.$bridge
  .queryAuthStatus(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })
1
2
3
4
5
6
7
8
9
10
11
12

# 获取接口返回结果

this.$bridge
  .addEventListener('singleBlueQueryAuthStatus', res=>console.log(res))
1
2

# 返回参数

  • 成功时返回
Prop Type Default Description
messageType String N/A singleBlueQueryAuthStatus
messageBody Object N/A
  • messageBody 对象属性
Prop Type Default Description
authStatus String N/A 0代表未确权,1,代表已确权(combo模组有用)
code Number N/A 0代表查询成功,-1代表查询失败,-2代表当前蓝牙未连接
mac String N/A
name String N/A
  • 失败时返回
Last Updated: 5/9/2024, 3:33:02 PM