# getDeviceConnectInfo ^6.8

获取配网指引

# 请求参数

Prop Type Default Comment
deviceType String N/A 设备类型,sn8,mode配网模式
mode Number N/A 配网模式(0 AP、1 快连、3 蓝牙)
sn8 String N/A
enterpriseCode String N/A 企业码

# 接口调用示例

const params = {
  deviceType: 0xac,
  sn8: 12345678,
  mode: 0,
  enterpriseCode: '', //企业码
}
this.$bridge
  .getDeviceConnectInfo(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
data Object N/A 返回数据
code Number N/A 返回码
  • data 对象属性
Prop Type Default Description
category String N/A 设备类型
mode Number N/A 配网模式
  • 失败时返回
更新时间: 7/27/2021, 11:23:45 AM