diff --git a/CHANGELOG.md b/CHANGELOG.md index f15232b..0280b24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +#### 1.4.3 (2024-07-09) + +Re-occuring issue with reconnection to mesh, another try plus removal of unused items. + #### 1.4.2 (2024-07-09) Attempt to fix issue with reconnection to mesh. diff --git a/package.json b/package.json index a11dea0..f314184 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Plejd", "name": "homebridge-plejd", "author": "Herlix", - "version": "1.4.2", + "version": "1.4.3", "description": "HomeKit support for the Plejd BLE platform using Homebridge", "license": "Apache-2.0", "type": "module", diff --git a/src/plejdService.ts b/src/plejdService.ts index 8565356..43d5288 100644 --- a/src/plejdService.ts +++ b/src/plejdService.ts @@ -10,7 +10,6 @@ import { randomBytes } from 'crypto'; import noble from '@abandonware/noble'; import { PLEJD_PING_TIMEOUT, PLEJD_WRITE_TIMEOUT } from './settings.js'; import { delay } from './utils.js'; -import EventEmitter from 'events'; const NOBLE_IS_POWER_ON = 'poweredOn'; @@ -144,7 +143,7 @@ export class PlejdService { this.log.error( `Connecting failed | ${peripheral.advertisement.localName} | addr: ${peripheral.address}) - err: ${error}`, ); - this.resetBLE(); + await this.resetBLE(); return; }