From e5912cd94e186a277e70a69f2568b1fabb459e96 Mon Sep 17 00:00:00 2001 From: chopster44 Date: Sun, 30 Nov 2025 21:43:00 +0000 Subject: [PATCH] (1.0.22) bump --- dist/index.cjs.js | 2 ++ dist/index.es.js | 2 ++ package.json | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dist/index.cjs.js b/dist/index.cjs.js index 96fbe76..8415fed 100644 --- a/dist/index.cjs.js +++ b/dist/index.cjs.js @@ -200,6 +200,8 @@ class Updater { // check for error // write file length return new Promise((resolve, reject) => { + // set mtu + this.bleObject.requestMtu(this.bleDeviceId, this._packetSize, (mtu) => { this._packetSize = mtu; }, () => { }); // start notify this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => { let dataView = new Uint8Array(rawData); diff --git a/dist/index.es.js b/dist/index.es.js index e34171a..2f74e1d 100644 --- a/dist/index.es.js +++ b/dist/index.es.js @@ -198,6 +198,8 @@ class Updater { // check for error // write file length return new Promise((resolve, reject) => { + // set mtu + this.bleObject.requestMtu(this.bleDeviceId, this._packetSize, (mtu) => { this._packetSize = mtu; }, () => { }); // start notify this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => { let dataView = new Uint8Array(rawData); diff --git a/package.json b/package.json index 6de1c5a..1fe107a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "updaterweblibrary", - "version": "1.0.21", + "version": "1.0.22", "description": "OTA Updater App frontend library", "repository": { "type": "git",