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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "homebridge-bedjet",
3
3
  "displayName": "BedJet",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "description": "Homebridge plugin for BedJet V3 via Bluetooth LE",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -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
- const { characteristics } = await peripheral.discoverSomeServicesAndCharacteristicsAsync(
156
- [NORM_SERVICE_UUID],
157
- [NORM_STATUS_UUID, NORM_NAME_UUID, NORM_COMMAND_UUID],
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);