Skip to content

Commit

Permalink
Second attempt at reconnect as issue is still there
Browse files Browse the repository at this point in the history
  • Loading branch information
Herlix committed Jul 9, 2024
1 parent b43bbd7 commit 0cd125c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions src/plejdService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 0cd125c

Please sign in to comment.