(1.0.27) bump
This commit is contained in:
4
dist/index.cjs.js
vendored
4
dist/index.cjs.js
vendored
@@ -199,9 +199,9 @@ class Updater {
|
|||||||
// send a packet
|
// send a packet
|
||||||
// check for error
|
// check for error
|
||||||
// write file length
|
// write file length
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
// set mtu
|
// 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
|
// start notify
|
||||||
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => {
|
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => {
|
||||||
let dataView = new Uint8Array(rawData);
|
let dataView = new Uint8Array(rawData);
|
||||||
|
|||||||
4
dist/index.es.js
vendored
4
dist/index.es.js
vendored
@@ -197,9 +197,9 @@ class Updater {
|
|||||||
// send a packet
|
// send a packet
|
||||||
// check for error
|
// check for error
|
||||||
// write file length
|
// write file length
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise(async (resolve, reject) => {
|
||||||
// set mtu
|
// 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
|
// start notify
|
||||||
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => {
|
this.bleObject.startNotification(this.bleDeviceId, this._updaterServiceUUID, this._updaterCommandCharacterisitcUUID, (rawData) => {
|
||||||
let dataView = new Uint8Array(rawData);
|
let dataView = new Uint8Array(rawData);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "updaterweblibrary",
|
"name": "updaterweblibrary",
|
||||||
"version": "1.0.26",
|
"version": "1.0.27",
|
||||||
"description": "OTA Updater App frontend library",
|
"description": "OTA Updater App frontend library",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user