incyclist-devices 2.3.0-beta.5 → 2.3.0-beta.6

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.
@@ -312,6 +312,7 @@ class BleInterface extends events_1.default {
312
312
  return;
313
313
  }
314
314
  if (announcement.serviceUUIDs.length === 0) {
315
+ return;
315
316
  if (this.isCompleting(announcement)) {
316
317
  return;
317
318
  }
@@ -488,10 +488,11 @@ class DirectConnectPeripheral {
488
488
  this.msgSeqNo = notification.header.seqNum;
489
489
  const uuid = (0, utils_1.parseUUID)(notification.body.characteristicUUID);
490
490
  this.logEvent({ message: 'Characteristic notification', path: this.getPath(), characteristic: (0, utils_1.beautifyUUID)(notification.body.characteristicUUID),
491
- data: Buffer.from(notification.body.characteristicData).toString('hex') });
491
+ data: Buffer.from(notification.body.characteristicData).toString('hex'), raw: incoming.toString('hex') });
492
492
  this.eventEmitter.emit(uuid, notification.body.characteristicData);
493
493
  }
494
494
  else {
495
+ this.logEvent({ message: 'incoming message', path: this.getPath(), raw: incoming.toString('hex'), header });
495
496
  this.eventEmitter.emit(`response-${header.seqNum}`, incoming);
496
497
  }
497
498
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "incyclist-devices",
3
- "version": "2.3.0-beta.5",
3
+ "version": "2.3.0-beta.6",
4
4
  "dependencies": {
5
5
  "@serialport/bindings-interface": "^1.2.2",
6
6
  "@serialport/parser-byte-length": "^9.0.1",