incyclist-devices 2.3.0-beta.14 → 2.3.0-beta.15
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.
|
@@ -370,10 +370,10 @@ class BleInterface extends events_1.default {
|
|
|
370
370
|
return __awaiter(this, void 0, void 0, function* () {
|
|
371
371
|
if (!this.isConnected() || !this.isDiscovering())
|
|
372
372
|
return;
|
|
373
|
+
this.addCompleting(announcement);
|
|
373
374
|
this.logEvent({ message: 'updateWithServices', peripheral: announcement.name });
|
|
374
375
|
try {
|
|
375
|
-
yield this.discoverServices(announcement);
|
|
376
|
-
return announcement;
|
|
376
|
+
announcement.serviceUUIDs = yield this.discoverServices(announcement);
|
|
377
377
|
}
|
|
378
378
|
catch (err) {
|
|
379
379
|
this.logError(err, 'updateWithServices');
|
|
@@ -409,7 +409,7 @@ class BleInterface extends events_1.default {
|
|
|
409
409
|
this.logEvent({ message: 'discover services failed', reason: err.message, device });
|
|
410
410
|
}
|
|
411
411
|
peripheral === null || peripheral === void 0 ? void 0 : peripheral.removeAllListeners();
|
|
412
|
-
return
|
|
412
|
+
return announcement.serviceUUIDs;
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
415
|
isScanning() {
|