homebridge-bedjet 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/bedjet/BedJet.ts +3 -4
package/package.json
CHANGED
package/src/bedjet/BedJet.ts
CHANGED
|
@@ -152,10 +152,9 @@ export class BedJet extends EventEmitter {
|
|
|
152
152
|
await peripheral.connectAsync();
|
|
153
153
|
this.log.debug(`[${this.config.name}] Connected — discovering services…`);
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
);
|
|
155
|
+
// Discover all services and characteristics — filtering by 128-bit UUID
|
|
156
|
+
// is unreliable on Linux/BlueZ so we discover everything and match manually.
|
|
157
|
+
const { characteristics } = await peripheral.discoverAllServicesAndCharacteristicsAsync();
|
|
159
158
|
|
|
160
159
|
for (const char of characteristics) {
|
|
161
160
|
const uuid = normalize(char.uuid);
|