diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 08f1234..cc17d69 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -177,7 +177,7 @@ 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); }, (error) => { this._fileProgress -= this._packetSize; diff --git a/dist/index.es.js b/dist/index.es.js index fadb034..40ffe0c 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -175,7 +175,7 @@ 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); }, (error) => { this._fileProgress -= this._packetSize; diff --git a/package.json b/package.json index 20ea9a7..70a97ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "updaterweblibrary", - "version": "1.0.24", + "version": "1.0.25", "description": "OTA Updater App frontend library", "repository": { "type": "git",