fix packet size issue

This commit is contained in:
2025-11-30 21:42:47 +00:00
parent ad464e1c0d
commit 20c203ffa4

View File

@@ -240,6 +240,8 @@ export default class Updater {
// write file length
return new Promise((resolve, reject) => {
// set mtu
this.bleObject.requestMtu(this.bleDeviceId, this._packetSize, (mtu: number) => { this._packetSize = mtu}, () =>{ })
// start notify
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID,
(rawData: ArrayBuffer): void => {