安卓 连接蓝牙打印 传输数据慢的问题
[代码]let arr = [[代码][代码] [代码][代码]fetch.gb2312buffer(title),[代码] [代码] [代码][代码]fetch.gb2312buffer(barcode),[代码][代码] [代码][代码]// fetch.gb2312buffer(barnum),[代码][代码] [代码][代码]fetch.gb2312buffer(fixword1),[代码][代码] [代码][代码]fetch.gb2312buffer(fixword2),[代码] [代码] [代码][代码]fetch.gb2312buffer(qrcode),[代码][代码] [代码][代码]fetch.gb2312buffer(receiveMan),[代码][代码] [代码][代码]fetch.gb2312buffer(sep1),[代码][代码] [代码][代码]fetch.gb2312buffer(receiveAddress),[代码] [代码] [代码][代码]fetch.gb2312buffer(sep2),[代码][代码] [代码][代码]fetch.gb2312buffer(name),[代码][代码] [代码][代码]fetch.gb2312buffer(sep),[代码][代码] [代码][代码]fetch.gb2312buffer(amount),[代码] [代码] [代码][代码]fetch.gb2312buffer(sep4),[代码][代码] [代码][代码]fetch.gb2312buffer(pType),[代码][代码] [代码][代码]fetch.gb2312buffer(sepl),[代码][代码] [代码][代码]fetch.gb2312buffer(distributionWay),[代码] [代码] [代码][代码]fetch.gb2312buffer(sep3),[代码][代码] [代码][代码]fetch.gb2312buffer(company)[代码][代码] [代码][代码]][代码][代码] [代码][代码]Promise.all(arr).then(res => {[代码][代码] [代码][代码]console.log(res)[代码][代码] [代码][代码]res.map((data, index) => {[代码][代码] [代码][代码]wx.writeBLECharacteristicValue({[代码][代码] [代码][代码]deviceId: that.data.deviceId,[代码][代码] [代码][代码]serviceId: that.data.serviceId,[代码][代码] [代码][代码]characteristicId: that.data.characteristicId,[代码][代码] [代码][代码]value: data.data,[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](re) {[代码][代码] [代码][代码]if[代码] [代码](index == res.length - 1) {[代码][代码] [代码][代码]that.myToast.show([代码][代码]'打印完成'[代码][代码])[代码][代码] [代码][代码]}[代码] [代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码][代码](re) {[代码][代码] [代码][代码]console.log([代码][代码]'fail'[代码][代码], re)[代码][代码] [代码][代码]that.myToast.show([代码][代码]'打印失败,请联系客服人员'[代码][代码])[代码][代码] [代码][代码]},[代码][代码] [代码][代码]complete: [代码][代码]function[代码][代码]() {[代码][代码] [代码][代码]wx.hideLoading()[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码] [代码][代码]})[代码][代码] [代码][代码]}, err => {[代码][代码] [代码][代码]wx.hideLoading()[代码][代码] [代码][代码]that.myToast.show([代码][代码]'打印失败,请联系客服人员'[代码][代码])[代码][代码] [代码][代码]console.log([代码][代码]'re fail'[代码][代码], re)[代码][代码] [代码][代码]})[代码]要发送的数据通过后台转码后,promise请求完遍历发送到蓝牙设备,iphone设备发送打印正常,安卓设备就发送很慢,所有的数据都是分开打印的,请问该怎么解决