收藏
回答

wx.closeBLEConnection(OBJECT) 失败?

框架类型 问题类型 操作系统 操作系统版本 手机型号 微信版本
小程序 需求 Android 1.9.9 vivo X9s 7.1.2

- 需求的场景描述(希望解决的问题)


var deviceId = e.currentTarget.dataset.id;

console.log(deviceId) // 有值的


// 不知道为什么 会 失败 返回10001 错误

wx.closeBLEConnection({

deviceId: deviceId,

success: function (res) {

console.log(res)

console.log('关闭之前的设备连接')

},

fail: function (err) {

console.log('关闭失败')

console.log(err)

return false;

}

})


- 希望提供的能力


回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容