# changeBleBindToWiFiConfig ^8.23

进入设备配网流程的接口

# 请求参数

Prop Type Required Default Description
params Object Y {} 请求参数

# params 字段

Prop Type Required Default Description
deviceType String Y N/A 设备品类码如:0xAC
enterpriseCode String Y N/A 企业吗:如:0000
sn String Y N/A 设备sn
brand String N N/A 设备品牌(非必须)
deviceId String N N/A 设备ID(非必须)
bleToken String Y N/A 蓝牙绑定身份校验token
bleMac String Y N/A 蓝牙设备mac
configStatus Number Y 0 设备配网状态
bleVersion String N 1 蓝牙广播版本号
ssid String N N/A 设备热点名称(非必须)
isNotBind Boolean N true 设是否不需要绑定(非必须)

# 接口调用示例


const params = {
    deviceType: '',
    enterpriseCode: '',
    sn: '',
    brand: '',
    deviceId: 'RxKzGu',
    bleToken: 'spz!#h',
    bleMac: '',
    configStatus: 1234,
    bleVersion: '0B@ZB(',
    ssid: '',
    isNotBind: true
}

this.$bridge
      .changeBleBindToWiFiConfig(params)
      .then(res => {
        this.$alert(res)
      })
      .catch(err => {
        this.$alert(err)
      })
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

# 返回参数

  • 成功时返回
Prop Type Default Description
code Number N/A 返回码0-成功,其他错误码:配网指引请求失败
msg String N/A 返回Code对应的说明信息
Last Updated: 3/15/2024, 4:29:10 PM