incyclist-devices 3.0.35 → 3.0.36

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.
@@ -46,7 +46,8 @@ class BleAdapter extends adpater_js_1.default {
46
46
  return p;
47
47
  }
48
48
  async waitForPeripheral() {
49
- this.logEvent({ message: 'waiting for sensor ...', device: this.getName(), interface: this.getInterface() });
49
+ const settings = { ...this.settings };
50
+ this.logEvent({ message: 'waiting for sensor ...', device: this.getName(), interface: this.getInterface(), address: settings.address });
50
51
  const ble = this.getBle();
51
52
  const peripheral = await ble.waitForPeripheral(this.settings);
52
53
  this.updateSensor(peripheral);
@@ -374,6 +374,7 @@ class DirectConnectPeripheral {
374
374
  this.socket.on('end', this.onPortCloseHandler);
375
375
  resolve(true);
376
376
  });
377
+ this.logEvent({ message: 'connecting to wifi peripheral', path: this.getPath() });
377
378
  this.socket.connect(port, address);
378
379
  });
379
380
  }
@@ -41,7 +41,8 @@ export default class BleAdapter extends IncyclistDevice {
41
41
  return p;
42
42
  }
43
43
  async waitForPeripheral() {
44
- this.logEvent({ message: 'waiting for sensor ...', device: this.getName(), interface: this.getInterface() });
44
+ const settings = { ...this.settings };
45
+ this.logEvent({ message: 'waiting for sensor ...', device: this.getName(), interface: this.getInterface(), address: settings.address });
45
46
  const ble = this.getBle();
46
47
  const peripheral = await ble.waitForPeripheral(this.settings);
47
48
  this.updateSensor(peripheral);
@@ -368,6 +368,7 @@ export class DirectConnectPeripheral {
368
368
  this.socket.on('end', this.onPortCloseHandler);
369
369
  resolve(true);
370
370
  });
371
+ this.logEvent({ message: 'connecting to wifi peripheral', path: this.getPath() });
371
372
  this.socket.connect(port, address);
372
373
  });
373
374
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "3.0.35",
3
+ "version": "3.0.36",
4
4
  "scripts": {
5
5
  "lint": "eslint . --ext .ts",
6
6
  "build": "npm run build:esm && npm run build:cjs",