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.
|
@@ -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
|
}
|