getDeviceConnectInfo 获取配网指引

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

#返回参数

  • 成功时返回
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 配网模式
  • 失败时返回
posted on 2024-12-19 09:23  AtlasLapetos  阅读(4)  评论(0)    收藏  举报