(1.0.29) bump

This commit is contained in:
chopster44 committed 2025-12-01 18:33:57 +00:00
1 parent faf4e377d7
commit 27403e0aed
3 files changed
+9 -5

No files matched your search

+4 -2
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
});
}
}
+4 -2
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
});
}
}
+1 -1
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",