queryAuthStatus 查询确权状态

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

#获取接口返回结果

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

#返回参数

  • 成功时返回
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
  • 失败时返回
posted on 2024-12-16 09:45  AtlasLapetos  阅读(10)  评论(0)    收藏  举报