going back to writing with response due to transmission issues

This commit is contained in:
2025-12-01 17:26:43 +00:00
parent e798f997d3
commit 852fcf67f4

View File

@@ -211,7 +211,7 @@ export default class Updater {
let packet = this.file.slice(this._fileProgress, this._fileProgress+this._packetSize);
this._fileProgress += this._packetSize;
return new Promise((resolve, reject) => {
this.bleObject.writeWithoutResponse(this.bleDeviceId, this._updaterServiceUUID, this._updateFileCharacteristicUUID, packet.buffer,
this.bleObject.write(this.bleDeviceId, this._updaterServiceUUID, this._updateFileCharacteristicUUID, packet.buffer,
() => {
resolve(true);
},