# startReceiveBlueAdvertising ^6.8

开始接受广告信息

# 请求参数

Prop Type Default Comment
decryptType Number N/A 0表示无需解密,1表示标准蓝牙加密方式(使用设备有:降本体脂秤)
id String N/A 监听器的ID,可以传入设备ID
mac String N/A
name String N/A '名称的正则表达式', // 如:".midea_ac_."

# 接口调用示例

const params = {
  id: '12345678', // 监听器的ID,可以传入设备ID
  name: '**名称的正则表达式**', // 如:".*midea_ac_.*"
  decryptType: 0, // 0表示无需解密,1表示标准蓝牙加密方式(使用设备有:降本体脂秤)
  mac: '',
}
this.$bridge
  .startReceiveBlueAdvertising(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
errorCode String N/A 0:启动成功,-1:启动失败
  • 失败时返回
更新时间: 7/27/2021, 11:23:45 AM