toConfigDevice 获取配网指引并进入配网页面

toConfigDevice ^6.8

获取配网指引并进入配网页面

#请求参数

Prop Type Default Comment
sn8 String N/A
deviceType String N/A 设备类型,sn8
enterpriseCode String N/A 企业码
mode String N/A 配网模式(0 AP、1 快连、3 蓝牙 4:零配 100:大屏扫码配网 2:MQTT配网)

#接口调用示例

const params = {
  sn8: 'xxx',
  deviceType: '', //设备类型
  mode: 0, //配网模式(0 AP、1 快连、3 蓝牙)
  enterpriseCode: '', //企业码
}
this.$bridge
  .toConfigDevice(params)
  .then(res => {
    this.$alert(res)
  })
  .catch(err => {
    this.$toast(err)
  })

#返回参数

  • 成功时返回
Prop Type Default Description
code Number N/A 0
  • 失败时返回
posted on 2024-12-21 14:45  AtlasLapetos  阅读(8)  评论(0)    收藏  举报