We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24395dd commit e34ec4bCopy full SHA for e34ec4b
lib/bluetooth-device-wrapper.ts
@@ -160,8 +160,7 @@ export class BluetoothDeviceWrapper implements Logging {
160
161
const events = this.currentEvents();
162
163
- // Ensure services is ready for starting notifications.
164
- await delay(1000);
+ await BleClient.discoverServices(this.device.deviceId);
165
const services = await BleClient.getServices(this.device.deviceId);
166
this.serviceIds = new Set(services.map((s) => s.uuid));
167
this.logging.log(`Starting notifications for current events ${events}`);
0 commit comments