Commit 2501d28b by liangjianmin

js

parent 2523c261
Showing with 4 additions and 10 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({ setTimeout(function() {
deviceId: that.deviceId, that.sendDataChange();
success(res) { }, 100);
console.log(res)
setTimeout(function() {
that.openBluetoothAdapter();
}, 0);
}
})
} 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