1、wx.closeBLEConnection
2、closeBluetoothAdapter
wx.closeBLEConnection({
deviceId: self.deviceId,
success: function (res) {
console.log(JSON.stringify(res));
},
fail: function (res) {
console.log(JSON.stringify(res));
}
});
wx.closeBluetoothAdapter({
success: function (res) {
console.log(JSON.stringify(res));
},
fail: function (res) {
console.log(JSON.stringify(res));
}
});
这样先后执行,closeBluetoothAdapter先返回成功,然后closeBLEConnection就总返回失败