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
|
-
|
|
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);
|
|
@@ -41,7 +41,8 @@ export default class BleAdapter extends IncyclistDevice {
|
|
|
41
41
|
return p;
|
|
42
42
|
}
|
|
43
43
|
async waitForPeripheral() {
|
|
44
|
-
|
|
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
|
}
|