Commit 2501d28b by liangjianmin

js

parent 2523c261
Showing with 3 additions and 9 deletions
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
that.getBLEDeviceCharacteristics(); that.getBLEDeviceCharacteristics();
} }
}); });
}, 0); }, 1000);
} }
}); });
}, },
...@@ -296,15 +296,9 @@ ...@@ -296,15 +296,9 @@
console.log('writeBLECharacteristicValue success', res.errMsg) console.log('writeBLECharacteristicValue success', res.errMsg)
that.print_number++; that.print_number++;
if (that.print_number < that.printLabelData.length) { if (that.print_number < that.printLabelData.length) {
uni.closeBLEConnection({
deviceId: that.deviceId,
success(res) {
console.log(res)
setTimeout(function() { setTimeout(function() {
that.openBluetoothAdapter(); that.sendDataChange();
}, 0); }, 100);
}
})
} else { } else {
uni.hideLoading(); uni.hideLoading();
uni.closeBLEConnection({ uni.closeBLEConnection({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment