(1.0.29) bump

This commit is contained in:
2025-12-01 18:33:57 +00:00
parent faf4e377d7
commit 27403e0aed
3 changed files with 107 additions and 103 deletions

6
dist/index.cjs.js vendored
View File

@@ -201,8 +201,8 @@ class Updater {
// write file length
return new Promise(async (resolve, reject) => {
// set mtu
this._packetSize = await this.bleObject.withPromises.requestMtu(this.bleDeviceId, this._packetSize);
// start notify
this.bleObject.requestMtu(this.bleDeviceId, this._packetSize, (mtu) => {
this._packetSize = mtu;
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => {
let dataView = new Uint8Array(rawData);
console.log(dataView);
@@ -257,6 +257,8 @@ class Updater {
view[0] = this._fileSize;
this.bleObject.withPromises.write(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, buffer);
});
// start notify
});
}
}

6
dist/index.es.js vendored
View File

@@ -199,8 +199,8 @@ class Updater {
// write file length
return new Promise(async (resolve, reject) => {
// set mtu
this._packetSize = await this.bleObject.withPromises.requestMtu(this.bleDeviceId, this._packetSize);
// start notify
this.bleObject.requestMtu(this.bleDeviceId, this._packetSize, (mtu) => {
this._packetSize = mtu;
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => {
let dataView = new Uint8Array(rawData);
console.log(dataView);
@@ -255,6 +255,8 @@ class Updater {
view[0] = this._fileSize;
this.bleObject.withPromises.write(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, buffer);
});
// start notify
});
}
}

View File

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