(1.0.27) bump

This commit is contained in:
2025-12-01 18:08:02 +00:00
parent 1b7719ac3d
commit d1927bc24e
3 changed files with 5 additions and 5 deletions

4
dist/index.cjs.js vendored
View File

@@ -199,9 +199,9 @@ class Updater {
// send a packet
// check for error
// write file length
return new Promise((resolve, reject) => {
return new Promise(async (resolve, reject) => {
// set mtu
this.bleObject.requestMtu(this.bleDeviceId, this._packetSize, (mtu) => { this._packetSize = mtu; }, () => { });
this._packetSize = await this.bleObject.withPromises.requestMtu(this.bleDeviceId, this._packetSize);
// start notify
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => {
let dataView = new Uint8Array(rawData);

4
dist/index.es.js vendored
View File

@@ -197,9 +197,9 @@ class Updater {
// send a packet
// check for error
// write file length
return new Promise((resolve, reject) => {
return new Promise(async (resolve, reject) => {
// set mtu
this.bleObject.requestMtu(this.bleDeviceId, this._packetSize, (mtu) => { this._packetSize = mtu; }, () => { });
this._packetSize = await this.bleObject.withPromises.requestMtu(this.bleDeviceId, this._packetSize);
// start notify
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => {
let dataView = new Uint8Array(rawData);

View File

@@ -1,6 +1,6 @@
{
"name": "updaterweblibrary",
"version": "1.0.26",
"version": "1.0.27",
"description": "OTA Updater App frontend library",
"repository": {
"type": "git",