Commit 2501d28b by liangjianmin

js

parent 2523c261
Showing with 4 additions and 10 deletions
......@@ -212,7 +212,7 @@
that.getBLEDeviceCharacteristics();
}
});
}, 0);
}, 1000);
}
});
},
......@@ -296,15 +296,9 @@
console.log('writeBLECharacteristicValue success', res.errMsg)
that.print_number++;
if (that.print_number < that.printLabelData.length) {
uni.closeBLEConnection({
deviceId: that.deviceId,
success(res) {
console.log(res)
setTimeout(function() {
that.openBluetoothAdapter();
}, 0);
}
})
setTimeout(function() {
that.sendDataChange();
}, 100);
} else {
uni.hideLoading();
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